OSDN Git Service

[media] cx23885: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 21 Aug 2014 14:56:42 +0000 (11:56 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 13:33:37 +0000 (10:33 -0300)
drivers/media/pci/cx23885/cx23885-dvb.c:1494:72: warning: Using plain integer as NULL pointer

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx23885/cx23885-dvb.c

index ccf413f..d71d59f 100644 (file)
@@ -1487,7 +1487,7 @@ static int dvb_register(struct cx23885_tsport *port)
                                        &hauppauge_hvr4400_si2165_config,
                                        &i2c_bus->i2c_adap);
                        if (fe0->dvb.frontend != NULL) {
-                               fe0->dvb.frontend->ops.i2c_gate_ctrl = 0;
+                               fe0->dvb.frontend->ops.i2c_gate_ctrl = NULL;
                                if (!dvb_attach(tda18271_attach,
                                                fe0->dvb.frontend,
                                                0x60, &i2c_bus2->i2c_adap,