[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>
This commit is contained in:
parent
fc3a62e9f5
commit
72873e51c5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue