mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
V4L/DVB (4674): Use NULL instead of 0 for ptrs
Use NULL instead of 0 for pointer value, eliminate sparse warnings. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
dcc29cbcec
commit
ab9caf9e22
@ -219,7 +219,7 @@ static struct dvb_usb_device_properties gp8psk_properties = {
|
||||
.cold_ids = { &gp8psk_usb_table[0], NULL },
|
||||
.warm_ids = { &gp8psk_usb_table[1], NULL },
|
||||
},
|
||||
{ 0 },
|
||||
{ NULL },
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -896,7 +896,7 @@ static int mpeg_do_ioctl(struct inode *inode, struct file *file,
|
||||
snprintf(name, sizeof(name), "%s/2", core->name);
|
||||
printk("%s/2: ============ START LOG STATUS ============\n",
|
||||
core->name);
|
||||
cx88_call_i2c_clients(core, VIDIOC_LOG_STATUS, 0);
|
||||
cx88_call_i2c_clients(core, VIDIOC_LOG_STATUS, NULL);
|
||||
cx2341x_log_status(&dev->params, name);
|
||||
printk("%s/2: ============= END LOG STATUS =============\n",
|
||||
core->name);
|
||||
|
@ -19,6 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include "pvrusb2-i2c-core.h"
|
||||
#include "pvrusb2-hdw-internal.h"
|
||||
#include "pvrusb2-debug.h"
|
||||
@ -89,7 +90,8 @@ void pvr2_i2c_probe(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
|
||||
|
||||
const struct pvr2_i2c_op *pvr2_i2c_get_op(unsigned int idx)
|
||||
{
|
||||
if (idx >= sizeof(ops)/sizeof(ops[0])) return 0;
|
||||
if (idx >= ARRAY_SIZE(ops))
|
||||
return NULL;
|
||||
return ops[idx];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user