au0828: fix checks if dvb is initialized 17/25817/1
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 01:02:07 +0000 (22:02 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 02:32:58 +0000 (23:32 -0300)
commit447698f6860746a279c8fd07344d67062f3533ef
tree972fd87ca8ae2abe2351b8e36b100ce67593c436
parent4cc0093b3becffca5ad3944ceffa488e43a8a3da
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