dvb-usb: Remove redundant NULL check before kfree
PATCH 1/1 dvb-usb: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op.
Signed-off-by Syam Sidhardhan <[email protected]>
--- drivers/media/usb/dvb-usb/cinergyT2-fe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/dvb-usb/cinergyT2-fe.c +1 -2
@@ -300,8 +300,7 @@ static int cinergyt2_fe_set_frontend(struct dvb_frontend *fe)static void cinergyt2_fe_release (struct dvb_frontend *fe) {struct cinergyt2_fe_state *state = fe->demodulator_priv; -if (state !=NULL ) -kfree (state); +kfree (state); }static struct dvb_frontend_ops cinergyt2_fe_ops;
Signature · 1 line
1.7.9.5