Commit 7996e5c4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

media: tc358743: remove an unneeded condition

We can remove the check for if "state->cec_adap" is NULL.  The
cec_allocate_adapter() function never returns NULL and also we verified
that "state->cec_adap" is an error pointer.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ac71484e
...@@ -2122,7 +2122,7 @@ static int tc358743_probe(struct i2c_client *client, ...@@ -2122,7 +2122,7 @@ static int tc358743_probe(struct i2c_client *client,
state, dev_name(&client->dev), state, dev_name(&client->dev),
CEC_CAP_DEFAULTS | CEC_CAP_MONITOR_ALL, CEC_MAX_LOG_ADDRS); CEC_CAP_DEFAULTS | CEC_CAP_MONITOR_ALL, CEC_MAX_LOG_ADDRS);
if (IS_ERR(state->cec_adap)) { if (IS_ERR(state->cec_adap)) {
err = state->cec_adap ? PTR_ERR(state->cec_adap) : -ENOMEM; err = PTR_ERR(state->cec_adap);
goto err_hdl; goto err_hdl;
} }
irq_mask |= MASK_CEC_RMSK | MASK_CEC_TMSK; irq_mask |= MASK_CEC_RMSK | MASK_CEC_TMSK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment