]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (3090): Cleanup check for dvb.
authorMichael Krufky <mkrufky@m1k.net>
Mon, 9 Jan 2006 17:25:13 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:13 +0000 (15:25 -0200)
- Cleanup check for dvb.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/video/cx88/cx88-i2c.c

index 7363dd6e66e29896d04be975ce982b8cf0135ab3..c6492089ee1ad50cc6cc1b4c7fd3b53156b01fe7 100644 (file)
@@ -136,10 +136,7 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg)
        if (0 != core->i2c_rc)
                return;
 
-       if (core->dvbdev == NULL) {
-               i2c_clients_command(&core->i2c_adap, cmd, arg);
-       } else {
-
+       if (core->dvbdev) {
                if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl)
                        core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 1);
 
@@ -147,8 +144,8 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg)
 
                if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl)
                        core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 0);
-       }
-
+       } else
+               i2c_clients_command(&core->i2c_adap, cmd, arg);
 }
 
 static struct i2c_algo_bit_data cx8800_i2c_algo_template = {