drm/omap: Delete useless kfree code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 14 Dec 2020 13:46:28 +0000 (21:46 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Dec 2020 15:19:54 +0000 (17:19 +0200)
The parameter of kfree function is NULL, so kfree code is useless, delete it.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201214134628.4937-1-zhengyongjun3@huawei.com
drivers/gpu/drm/omapdrm/tcm-sita.c

index 9e1acbd..8338dc6 100644 (file)
@@ -254,6 +254,5 @@ struct tcm *sita_init(u16 width, u16 height)
        return tcm;
 
 error:
-       kfree(tcm);
        return NULL;
 }