提交 33cef283 编写于 作者: S Syam Sidhardhan 提交者: Mauro Carvalho Chehab

[media] dvb-usb: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: NSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 f1065c96
...@@ -300,8 +300,7 @@ static int cinergyt2_fe_set_frontend(struct dvb_frontend *fe) ...@@ -300,8 +300,7 @@ static int cinergyt2_fe_set_frontend(struct dvb_frontend *fe)
static void cinergyt2_fe_release(struct dvb_frontend *fe) static void cinergyt2_fe_release(struct dvb_frontend *fe)
{ {
struct cinergyt2_fe_state *state = fe->demodulator_priv; struct cinergyt2_fe_state *state = fe->demodulator_priv;
if (state != NULL) kfree(state);
kfree(state);
} }
static struct dvb_frontend_ops cinergyt2_fe_ops; static struct dvb_frontend_ops cinergyt2_fe_ops;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册