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:
Bart Van Assche
2013-08-13 18:39:37 +00:00
parent 2381497291
commit 07569ed62d
+2 -6
View File
@@ -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);
}
/*