au0828: fix checks if dvb is initialized
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 01:02:07 +0000 (22:02 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:29 +0000 (12:00 +0900)
commitcab4b62c0f950399cf06207b734c862e2a0cd21c
treec0813874f20123dbbe065975007e31d80e47aeae
parent92ea7e2b56ae5817276a18310a88df57a3510816
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.

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