[media] lmedm04: Remove redundant NULL check before kfree
authorSyam Sidhardhan <s.syam@samsung.com>
Wed, 6 Mar 2013 19:44:46 +0000 (16:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 18:19:29 +0000 (15:19 -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/usb/dvb-usb-v2/lmedm04.c

index 96804be0fffec49b638a726234dcd1ddc68f63be..b3fd0ffa3c3f2d218eaccd214aea98037dcb5246 100644 (file)
@@ -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);
        }
 }