From: Syam Sidhardhan Date: Wed, 6 Mar 2013 19:44:46 +0000 (-0300) Subject: [media] lmedm04: Remove redundant NULL check before kfree X-Git-Tag: v3.10-rc1~136^2~484 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72873e51c578ae29463a5d146f68881fcd0924c0;p=platform%2Fkernel%2Flinux-3.10.git [media] lmedm04: Remove redundant NULL check before kfree kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 96804be..b3fd0ff 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); } }