Browse Source

[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>
Syam Sidhardhan 12 years ago
parent
commit
72873e51c5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/media/usb/dvb-usb-v2/lmedm04.c

+ 1 - 2
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);
 	}
 }