From: Jesper Juhl Date: Sat, 25 Jun 2005 21:59:14 +0000 (-0700) Subject: [PATCH] remove pointless NULL check before kfree in sony535.c X-Git-Tag: v2.6.13-rc1~68^2~32 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e0b1134e46195c64bbad21010799ba567bf7f2;p=linux-2.6 [PATCH] remove pointless NULL check before kfree in sony535.c There's no need to check for NULL, kfree() can cope. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/cdrom/sonycd535.c b/drivers/cdrom/sonycd535.c index f4be7bfd66..9f22e8f1f6 100644 --- a/drivers/cdrom/sonycd535.c +++ b/drivers/cdrom/sonycd535.c @@ -1605,8 +1605,7 @@ out7: 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: