diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2013-03-06 16:44:46 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-19 15:19:29 -0300 |
commit | 72873e51c578ae29463a5d146f68881fcd0924c0 (patch) | |
tree | 43c61ac0bd120e2dfebf06559ac3b2ed60542c6c /drivers/media/usb | |
parent | fc3a62e9f5ff5585ad9b9c27c2b800338aa3f751 (diff) | |
download | blackbird-op-linux-72873e51c578ae29463a5d146f68881fcd0924c0.tar.gz blackbird-op-linux-72873e51c578ae29463a5d146f68881fcd0924c0.zip |
[media] lmedm04: 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/usb')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/lmedm04.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 96804be0fffe..b3fd0ffa3c3f 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -1302,8 +1302,7 @@ static void lme2510_exit(struct dvb_usb_device *d) if (d != NULL) { usb_buffer = lme2510_exit_int(d); - if (usb_buffer != NULL) - kfree(usb_buffer); + kfree(usb_buffer); } } |