From: Syam Sidhardhan Date: Wed, 6 Mar 2013 19:44:46 +0000 (-0300) Subject: [media] lmedm04: Remove redundant NULL check before kfree X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=72873e51c578ae29463a5d146f68881fcd0924c0;p=openwrt%2Fstaging%2Fblogic.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 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); } }