Commit 2da8eab9 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Mauro Carvalho Chehab

[media] siano: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent bf306900
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment