Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -719,7 +719,6 @@ 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);

	list_del(&coredev->entry);