2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00

[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>
This commit is contained in:
Syam Sidhardhan 2013-02-26 15:35:01 -03:00 committed by Mauro Carvalho Chehab
parent f1065c9648
commit 33cef283af

View 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;