Commit 0ae1c2db authored by Ding Xiang's avatar Ding Xiang Committed by Linus Torvalds

ocfs2: remove unneeded null check

Null check for kfree is unnecessary, so remove it.

Link: http://lkml.kernel.org/r/1535704514-26559-1-git-send-email-dingxiang@cmss.chinamobile.comSigned-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2de24cb7
...@@ -1392,7 +1392,6 @@ static int ocfs2_unwritten_check(struct inode *inode, ...@@ -1392,7 +1392,6 @@ static int ocfs2_unwritten_check(struct inode *inode,
unlock: unlock:
spin_unlock(&oi->ip_lock); spin_unlock(&oi->ip_lock);
out: out:
if (new)
kfree(new); kfree(new);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment