summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2013-02-26 19:28:15 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 21:04:37 +0100
commit18552ea1322e218b43f7692d9358c930a6d81df1 (patch)
tree836111c6af7efa4a33f90338d0a7d60afadc9edb /drivers/media/pci/ivtv
parent[media] siano: Remove redundant NULL check before kfree (diff)
downloadlinux-18552ea1322e218b43f7692d9358c930a6d81df1.tar.xz
linux-18552ea1322e218b43f7692d9358c930a6d81df1.zip
[media] media: ivtv: Remove redundant NULL check before kfree
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>
Diffstat (limited to 'drivers/media/pci/ivtv')
-rw-r--r--drivers/media/pci/ivtv/ivtvfb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/pci/ivtv/ivtvfb.c b/drivers/media/pci/ivtv/ivtvfb.c
index 05b94aa8ba32..9ff1230192e8 100644
--- a/drivers/media/pci/ivtv/ivtvfb.c
+++ b/drivers/media/pci/ivtv/ivtvfb.c
@@ -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) {