mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
07d46de415
commit
89e0b1134e
|
@ -1605,8 +1605,7 @@ static int __init sony535_init(void)
|
||||||
put_disk(cdu_disk);
|
put_disk(cdu_disk);
|
||||||
out6:
|
out6:
|
||||||
for (i = 0; i < sony_buffer_sectors; i++)
|
for (i = 0; i < sony_buffer_sectors; i++)
|
||||||
if (sony_buffer[i])
|
kfree(sony_buffer[i]);
|
||||||
kfree(sony_buffer[i]);
|
|
||||||
out5:
|
out5:
|
||||||
kfree(sony_buffer);
|
kfree(sony_buffer);
|
||||||
out4:
|
out4:
|
||||||
|
|
Loading…
Reference in New Issue