mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ocfs2/dlm: remove redundant null pointer check
kfree on a NULL pointer is a no-op. Remove the redundant null pointer check. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Mark Fasheh <mfasheh@suse.de> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7f4804d4c8
commit
7cfa74d101
@ -1498,10 +1498,8 @@ leave:
|
||||
|
||||
dlm_put(dlm);
|
||||
if (ret < 0) {
|
||||
if (buf)
|
||||
kfree(buf);
|
||||
if (item)
|
||||
kfree(item);
|
||||
kfree(buf);
|
||||
kfree(item);
|
||||
mlog_errno(ret);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user