Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dvb-usb: 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>

authored by

Syam Sidhardhan and committed by
Mauro Carvalho Chehab
33cef283 f1065c96

+1 -2
+1 -2
drivers/media/usb/dvb-usb/cinergyT2-fe.c
··· 300 300 static void cinergyt2_fe_release(struct dvb_frontend *fe) 301 301 { 302 302 struct cinergyt2_fe_state *state = fe->demodulator_priv; 303 - if (state != NULL) 304 - kfree(state); 303 + kfree(state); 305 304 } 306 305 307 306 static struct dvb_frontend_ops cinergyt2_fe_ops;