]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: tc358743: remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Sep 2017 13:03:54 +0000 (15:03 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 12:14:13 +0000 (14:14 +0200)
commit7996e5c47fc01ca4bd94b40ba4585054f1d69b0e
tree96ce8229f8920e267436ff0a7336479c2087857d
parentac71484e89461a22d89ac84fcdc0235bf0a3e011
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tc358743.c