提交 89e0b113 编写于 作者: J Jesper Juhl 提交者: Linus Torvalds

[PATCH] remove pointless NULL check before kfree in sony535.c

There's no need to check for NULL, kfree() can cope.
Signed-off-by: NJesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 07d46de4
......@@ -1605,8 +1605,7 @@ static int __init sony535_init(void)
put_disk(cdu_disk);
out6:
for (i = 0; i < sony_buffer_sectors; i++)
if (sony_buffer[i])
kfree(sony_buffer[i]);
kfree(sony_buffer[i]);
out5:
kfree(sony_buffer);
out4:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册