diff options
author | Syam Sidhardhan | 2013-03-06 16:44:46 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2013-03-19 15:19:29 -0300 |
commit | 72873e51c578ae29463a5d146f68881fcd0924c0 (patch) | |
tree | 43c61ac0bd120e2dfebf06559ac3b2ed60542c6c | |
parent | fc3a62e9f5ff5585ad9b9c27c2b800338aa3f751 (diff) |
[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>
-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); } } |