diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-05 02:42:38 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-05 02:42:38 -0200 |
commit | 6c58bd48a9d50637a1ec73c5ef3487add042bc82 (patch) | |
tree | f1f12fca33e586371ea90af904067cdc35cc58e0 /linux/drivers | |
parent | db78ef299ad36a51105214ee94f4d2671ae44ef5 (diff) | |
download | mediapointer-dvb-s2-6c58bd48a9d50637a1ec73c5ef3487add042bc82.tar.gz mediapointer-dvb-s2-6c58bd48a9d50637a1ec73c5ef3487add042bc82.tar.bz2 |
v4l2-device: Fix some sparse warnings
From: Mauro Carvalho Chehab <mchehab@redhat.com>
/home/v4l/master/v4l/v4l2-device.c:32:2: warning: Using plain integer as NULL pointer
/home/v4l/master/v4l/v4l2-device.c:64:2: warning: Using plain integer as NULL pointer
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/v4l2-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/v4l2-device.c b/linux/drivers/media/video/v4l2-device.c index 9eefde031..cf9d4c7f5 100644 --- a/linux/drivers/media/video/v4l2-device.c +++ b/linux/drivers/media/video/v4l2-device.c @@ -29,7 +29,7 @@ int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev) if (dev == NULL || v4l2_dev == NULL) return -EINVAL; /* Warn if we apparently re-register a device */ - WARN_ON(dev_get_drvdata(dev)); + WARN_ON(dev_get_drvdata(dev) != NULL); INIT_LIST_HEAD(&v4l2_dev->subdevs); spin_lock_init(&v4l2_dev->lock); v4l2_dev->dev = dev; @@ -61,7 +61,7 @@ int v4l2_device_register_subdev(struct v4l2_device *dev, struct v4l2_subdev *sd) if (dev == NULL || sd == NULL || !sd->name[0]) return -EINVAL; /* Warn if we apparently re-register a subdev */ - WARN_ON(sd->dev); + WARN_ON(sd->dev != NULL); if (!try_module_get(sd->owner)) return -ENODEV; sd->dev = dev; |