From: Zheng Yongjun Date: Mon, 14 Dec 2020 13:46:28 +0000 (+0800) Subject: drm/omap: Delete useless kfree code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=010dbfbe7bad50f942fdc97a11ad40ba306f9707;p=linux.git drm/omap: Delete useless kfree code The parameter of kfree function is NULL, so kfree code is useless, delete it. Signed-off-by: Zheng Yongjun Signed-off-by: Tomi Valkeinen Link: https://patchwork.freedesktop.org/patch/msgid/20201214134628.4937-1-zhengyongjun3@huawei.com --- diff --git a/drivers/gpu/drm/omapdrm/tcm-sita.c b/drivers/gpu/drm/omapdrm/tcm-sita.c index 9e1acbd2c7aa2..8338dc6653015 100644 --- a/drivers/gpu/drm/omapdrm/tcm-sita.c +++ b/drivers/gpu/drm/omapdrm/tcm-sita.c @@ -254,6 +254,5 @@ struct tcm *sita_init(u16 width, u16 height) return tcm; error: - kfree(tcm); return NULL; }