projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d46de
)
[PATCH] remove pointless NULL check before kfree in sony535.c
author
Jesper Juhl
<juhl-lkml@dif.dk>
Sat, 25 Jun 2005 21:59:14 +0000
(14:59 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/cdrom/sonycd535.c
b/drivers/cdrom/sonycd535.c
index f4be7bfd6675ee4ef7f2c024404c0ab64abfe5c3..9f22e8f1f6c0182dbbbb9ecd5689d01235f53404 100644
(file)
--- 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: