[linuxtv-media:master 491/499] drivers/media/usb/cx231xx/cx231xx-dvb.c:736:57: sparse: Using plain integer as NULL pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://linuxtv.org/media_tree.git master
head:   0a12830893e8b111189e9019848ead054b0f85b3
commit: dd2e7dd20cf482bc2fd989bfbd0354476ae904c2 [491/499] [media] cx231xx: Add digital support for HVR 930c-HD model 1113xx
reproduce: make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/media/usb/cx231xx/cx231xx-dvb.c:736:57: sparse: Using plain integer as NULL pointer

vim +736 drivers/media/usb/cx231xx/cx231xx-dvb.c

   720			break;
   721	
   722		case CX231XX_BOARD_HAUPPAUGE_930C_HD_1113xx:
   723	
   724			dev->dvb->frontend = dvb_attach(si2165_attach,
   725				&hauppauge_930C_HD_1113xx_si2165_config,
   726				&dev->i2c_bus[dev->board.tuner_i2c_master].i2c_adap
   727				);
   728	
   729			if (dev->dvb->frontend == NULL) {
   730				printk(DRIVER_NAME
   731				       ": Failed to attach SI2165 front end\n");
   732				result = -EINVAL;
   733				goto out_free;
   734			}
   735	
 > 736			dev->dvb->frontend->ops.i2c_gate_ctrl = 0;
   737	
   738			/* define general-purpose callback pointer */
   739			dvb->frontend->callback = cx231xx_tuner_callback;
   740	
   741			dvb_attach(tda18271_attach, dev->dvb->frontend,
   742				0x60,
   743				&dev->i2c_bus[dev->board.tuner_i2c_master].i2c_adap,
   744				&hcw_tda18271_config);

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux