提交 2da8eab9 编写于 作者: S Syam Sidhardhan 提交者: Mauro Carvalho Chehab

[media] siano: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: NSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 bf306900
...@@ -719,8 +719,7 @@ void smscore_unregister_device(struct smscore_device_t *coredev) ...@@ -719,8 +719,7 @@ void smscore_unregister_device(struct smscore_device_t *coredev)
dma_free_coherent(NULL, coredev->common_buffer_size, dma_free_coherent(NULL, coredev->common_buffer_size,
coredev->common_buffer, coredev->common_buffer_phys); coredev->common_buffer, coredev->common_buffer_phys);
if (coredev->fw_buf != NULL) kfree(coredev->fw_buf);
kfree(coredev->fw_buf);
list_del(&coredev->entry); list_del(&coredev->entry);
kfree(coredev); kfree(coredev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册