summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2013-02-26 15:24:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 17:03:41 -0300
commit2da8eab97544266020a8cddb2936237abbb93859 (patch)
treedc596cd44aa4fc888b2b997494493bf74d264ddc /drivers
parentbf30690029a3b8572a6fc2facb77fbde86992988 (diff)
downloadlinux-2da8eab97544266020a8cddb2936237abbb93859.tar.bz2
[media] siano: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan <s.syam@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/common/siano/smscoreapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/common/siano/smscoreapi.c b/drivers/media/common/siano/smscoreapi.c
index 1842e64e6338..9565dcc8381f 100644
--- 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);