[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>
This commit is contained in:
Syam Sidhardhan 2013-02-26 15:24:56 -03:00 committed by Mauro Carvalho Chehab
parent bf30690029
commit 2da8eab975
1 changed files with 1 additions and 2 deletions

View File

@ -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);