commit | bbc62a18b6d90da702d14f0d04f67de1e37ca790 | [log] [tgz] |
---|---|---|
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | Sat Aug 09 23:14:20 2014 -0300 |
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | Thu Aug 21 15:25:10 2014 -0500 |
tree | 9ff920b4b353403d37f31ac9125ca963e2dc44a9 | |
parent | 59b94f3e74042a82fd59478d688909760b873b02 [diff] |
[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>