OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da8eab
)
[media] media: ivtv: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<syamsidhardh@gmail.com>
Tue, 26 Feb 2013 18:28:15 +0000
(15:28 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 18 Mar 2013 20:04:37 +0000
(17:04 -0300)
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>
drivers/media/pci/ivtv/ivtvfb.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/ivtv/ivtvfb.c
b/drivers/media/pci/ivtv/ivtvfb.c
index
05b94aa
..
9ff1230
100644
(file)
--- 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) {