Commit 89e0b113 authored by Jesper Juhl's avatar Jesper Juhl Committed by 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: default avatarJesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 07d46de4
...@@ -1605,7 +1605,6 @@ out7: ...@@ -1605,7 +1605,6 @@ out7:
put_disk(cdu_disk); put_disk(cdu_disk);
out6: out6:
for (i = 0; i < sony_buffer_sectors; i++) for (i = 0; i < sony_buffer_sectors; i++)
if (sony_buffer[i])
kfree(sony_buffer[i]); kfree(sony_buffer[i]);
out5: out5:
kfree(sony_buffer); kfree(sony_buffer);
......
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