diff options
author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-06-25 14:59:14 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 16:25:06 -0700 |
commit | 89e0b1134e46195c64bbad21010799ba567bf7f2 (patch) | |
tree | 0da37d1609de2e13f359dfe3a8406d4ac252334d /drivers/cdrom | |
parent | 07d46de415fba309a5648f078fdda118d489646b (diff) | |
download | kernel_samsung_smdk4412-89e0b1134e46195c64bbad21010799ba567bf7f2.zip kernel_samsung_smdk4412-89e0b1134e46195c64bbad21010799ba567bf7f2.tar.gz kernel_samsung_smdk4412-89e0b1134e46195c64bbad21010799ba567bf7f2.tar.bz2 |
[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 <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/sonycd535.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cdrom/sonycd535.c b/drivers/cdrom/sonycd535.c index f4be7bf..9f22e8f 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: |