projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf30690
)
[media] siano: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<
[email protected]
>
Tue, 26 Feb 2013 18:24:56 +0000
(15:24 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Mon, 18 Mar 2013 20:03:41 +0000
(17:03 -0300)
kfree on NULL pointer is a no-op.
Signed-off-by: Syam Sidhardhan <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/common/siano/smscoreapi.c
patch
|
blob
|
history
diff --git
a/drivers/media/common/siano/smscoreapi.c
b/drivers/media/common/siano/smscoreapi.c
index 1842e64e63383c0a87bb0b557d3a0fd7fad0250e..9565dcc8381fd9369d2367fd365a1dde73ae510b 100644
(file)
--- a/
drivers/media/common/siano/smscoreapi.c
+++ b/
drivers/media/common/siano/smscoreapi.c
@@
-719,8
+719,7
@@
void smscore_unregister_device(struct smscore_device_t *coredev)
dma_free_coherent(NULL, coredev->common_buffer_size,
coredev->common_buffer, coredev->common_buffer_phys);
- if (coredev->fw_buf != NULL)
- kfree(coredev->fw_buf);
+ kfree(coredev->fw_buf);
list_del(&coredev->entry);
kfree(coredev);