upstream: [media] ddbridge: remove unneeded an NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 1 Mar 2014 13:55:29 +0000 (10:55 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:55:00 +0000 (11:55 +0900)
commit68033fb4a550ec19d535fe31d0d0734e479a6907
treeb4fd344cd3dbf88486bd4ce1c872b54ad2eb41d5
parent611001504aae39f08eb4cca9bc8b6fc106b552e7
upstream: [media] ddbridge: remove unneeded an NULL check

Static checkers complain about the inconsistent NULL check here.

There is an unchecked dereference of "input->fe" in the call to
tuner_attach_tda18271() and there is a second unchecked dereference a
couple lines later when we do:
input->fe2->tuner_priv = input->fe->tuner_priv;

But actually "intput->fe" can't be NULL because if demod_attach_drxk()
fails to allocate it, then we would have return an error code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/ddbridge/ddbridge-core.c