[media] dvb-usb: Remove redundant NULL check before kfree
authorSyam Sidhardhan <syamsidhardh@gmail.com>
Tue, 26 Feb 2013 18:35:01 +0000 (15:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Mar 2013 20:05:17 +0000 (17:05 -0300)
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>
drivers/media/usb/dvb-usb/cinergyT2-fe.c

index 1efc028a76c9c5bb937f6c8979d672ec68104596..c890fe46acd3966b8a1b6c0626e1d459c77d6bdd 100644 (file)
@@ -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;