mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
[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:
parent
bf30690029
commit
2da8eab975
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue