Commit 18552ea1 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Mauro Carvalho Chehab

[media] media: ivtv: 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 2da8eab9
......@@ -1171,8 +1171,7 @@ static void ivtvfb_release_buffers (struct ivtv *itv)
fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
/* Release pseudo palette */
if (oi->ivtvfb_info.pseudo_palette)
kfree(oi->ivtvfb_info.pseudo_palette);
kfree(oi->ivtvfb_info.pseudo_palette);
#ifdef CONFIG_MTRR
if (oi->fb_end_aligned_physaddr) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment