diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-18 15:28:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-18 15:28:09 -0300 |
commit | 2077ee796fefb8f80d43b5318e6f1b54d235a3ea (patch) | |
tree | d723760c0cc5e35c94ff7fe8d6c2d6f6ac7330c0 /linux/include | |
parent | 0f42d9b3869315f6da11e7042fa930a2a97d01b5 (diff) | |
download | mediapointer-dvb-s2-2077ee796fefb8f80d43b5318e6f1b54d235a3ea.tar.gz mediapointer-dvb-s2-2077ee796fefb8f80d43b5318e6f1b54d235a3ea.tar.bz2 |
Check __must_check warning in video_device_create_file
From: Michael Krufky <mkrufky@linuxtv.org>
This patch moves the check from bttv-driver.c into v4l2-dev.h,
because all other callers of video_device_create_file must also
be checked.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index b3b196b88..171a63f65 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -380,7 +380,10 @@ static inline int video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) { - return class_device_create_file(&vfd->class_dev, attr); + int ret = class_device_create_file(&vfd->class_dev, attr); + if (ret < 0) + printk(KERN_WARNING "%s error: %d\n", __FUNCTION__, ret); + return ret; } static inline void video_device_remove_file(struct video_device *vfd, |