[media] ddbridge: remove unneeded an NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 1 Mar 2014 13:55:29 +0000 (10:55 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 18:55:37 +0000 (15:55 -0300)
commitcdcb12e78a4559c1842fbf8fb82e770b9f7362d6
tree741e3ab3560529b77da0f82eb81a72811c5de2d0
parentf8817c9ea1f44aca9f342c6a314da4eb64ba0cb4
[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