[media] au0828: fix checks if dvb is initialized
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 02:14:20 +0000 (23:14 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:10 +0000 (15:25 -0500)
commitbbc62a18b6d90da702d14f0d04f67de1e37ca790
tree9ff920b4b353403d37f31ac9125ca963e2dc44a9
parent59b94f3e74042a82fd59478d688909760b873b02
[media] au0828: fix checks if dvb is initialized

dev->dvb is always not null, as it is an area at the dev
memory. So, checking if (dev->dvb) is always true.

Instead of this stupid check, what the code wants to do is
to know if the DVB was successully registered.

Fix it by checking, instead, for dvb->frontend. It should
also be sure that this var will be NULL if the device was
not properly initialized.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/au0828/au0828-dvb.c