aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2011-03-06 12:44:09 (GMT)
committerHans Verkuil <hverkuil@xs4all.nl>2011-03-06 12:44:09 (GMT)
commitfed97a85c4fe90d1c25a40e9a09415605568a0c7 (patch)
treea743b235bbdda508bc934d58f5bf47a8e6b1cd4e
parentd2d39aea41156cda6d83f89cdbab0e264affad58 (diff)
Fix pvrusb2 compile warnings.
media_build/v4l/pvrusb2-sysfs.c: In function 'pvr2_sysfs_add_control': media_build/v4l/pvrusb2-sysfs.c:327:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:332:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:337:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:342:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:347:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:352:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:356:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:360:2: warning: statement with no effect media_build/v4l/pvrusb2-sysfs.c:365:2: warning: statement with no effect sysfs_attr_init(a) should define to nothing instead of '0'. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r--v4l/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 38ebfb0..bc8d71f 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -789,7 +789,7 @@ static inline int snd_ctl_enum_info(struct snd_ctl_elem_info *info, unsigned int
#endif
#ifdef NEED_SYSFS_ATTR_INIT
-#define sysfs_attr_init(a) 0
+#define sysfs_attr_init(a)
#endif
#ifdef NEED_USLEEP_RANGE

Privacy Policy