diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-09-28 13:03:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-03 14:14:20 -0400 |
commit | ab9caf9e221ee1b13186a9144da26ac358f2a6f4 (patch) | |
tree | 758c8b0bf5ad1a4d922772f7ddc64101993b52ee /drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | |
parent | dcc29cbcec8c8482eea249030e0aa65b7451073d (diff) |
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>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c index ed3e8105292a..05121666b9ba 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-chips-v4l2.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/kernel.h> | ||
22 | #include "pvrusb2-i2c-core.h" | 23 | #include "pvrusb2-i2c-core.h" |
23 | #include "pvrusb2-hdw-internal.h" | 24 | #include "pvrusb2-hdw-internal.h" |
24 | #include "pvrusb2-debug.h" | 25 | #include "pvrusb2-debug.h" |
@@ -89,7 +90,8 @@ void pvr2_i2c_probe(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp) | |||
89 | 90 | ||
90 | const struct pvr2_i2c_op *pvr2_i2c_get_op(unsigned int idx) | 91 | const struct pvr2_i2c_op *pvr2_i2c_get_op(unsigned int idx) |
91 | { | 92 | { |
92 | if (idx >= sizeof(ops)/sizeof(ops[0])) return 0; | 93 | if (idx >= ARRAY_SIZE(ops)) |
94 | return NULL; | ||
93 | return ops[idx]; | 95 | return ops[idx]; |
94 | } | 96 | } |
95 | 97 | ||