]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] remove pointless NULL check before kfree in sony535.c
authorJesper Juhl <juhl-lkml@dif.dk>
Sat, 25 Jun 2005 21:59:14 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:25:06 +0000 (16:25 -0700)
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>
drivers/cdrom/sonycd535.c

index f4be7bfd6675ee4ef7f2c024404c0ab64abfe5c3..9f22e8f1f6c0182dbbbb9ecd5689d01235f53404 100644 (file)
@@ -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: