Skip to content

Commit

Permalink
[PATCH] remove pointless NULL check before kfree in sony535.c
Browse files Browse the repository at this point in the history
There's no need to check for NULL, kfree() can cope.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 25, 2005
1 parent 07d46de commit 89e0b11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/cdrom/sonycd535.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 89e0b11

Please sign in to comment.