Skip to content

Commit

Permalink
[media] media: ivtv: Remove redundant NULL check before kfree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Syam Sidhardhan authored and Mauro Carvalho Chehab committed Mar 18, 2013
1 parent 2da8eab commit 18552ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/pci/ivtv/ivtvfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 18552ea

Please sign in to comment.