diff options
author | Ding Xiang <[email protected]> | 2018-10-26 15:02:48 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-10-26 16:25:18 -0700 |
commit | 0ae1c2dbdccc090762eb3c89183d7fc80dafca76 (patch) | |
tree | 3ada49ef3296736099713a067c3e9c277605eb81 | |
parent | 2de24cb742d4f0c41358aa078bed7f089c827ac7 (diff) |
ocfs2: remove unneeded null check
Null check for kfree is unnecessary, so remove it.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ding Xiang <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | fs/ocfs2/aops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 302cd7caa4a7..da578ad4c08f 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -1392,8 +1392,7 @@ retry: unlock: spin_unlock(&oi->ip_lock); out: - if (new) - kfree(new); + kfree(new); return ret; } |