Commit 72873e51 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Mauro Carvalho Chehab

[media] lmedm04: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fc3a62e9
...@@ -1302,8 +1302,7 @@ static void lme2510_exit(struct dvb_usb_device *d) ...@@ -1302,8 +1302,7 @@ static void lme2510_exit(struct dvb_usb_device *d)
if (d != NULL) { if (d != NULL) {
usb_buffer = lme2510_exit_int(d); usb_buffer = lme2510_exit_int(d);
if (usb_buffer != NULL) kfree(usb_buffer);
kfree(usb_buffer);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment