mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
fcst: Micro-optimize ft_cmd_free()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4963 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-6
@@ -191,13 +191,9 @@ static void ft_cmd_done(struct ft_cmd *fcmd)
|
||||
*/
|
||||
void ft_cmd_free(struct scst_cmd *cmd)
|
||||
{
|
||||
struct ft_cmd *fcmd;
|
||||
struct ft_cmd *fcmd = scst_cmd_get_tgt_priv(cmd);
|
||||
|
||||
fcmd = scst_cmd_get_tgt_priv(cmd);
|
||||
if (fcmd) {
|
||||
scst_cmd_set_tgt_priv(cmd, NULL);
|
||||
ft_cmd_done(fcmd);
|
||||
}
|
||||
ft_cmd_done(fcmd);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user