summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-08-01 07:53:30 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-09 09:36:13 -0400
commit79bcd34ccfe009ad21d16100ae2aef9b378a512d (patch)
treeb230654ad71b90bdf9465a91863f90e290fb6179 /include
parent079c6eaf80d9fb6d9cea7ad71e590c8425c1b0fe (diff)
downloadlinux-79bcd34ccfe009ad21d16100ae2aef9b378a512d.tar.bz2
media: cec-funcs.h: cec_ops_report_features: set *dev_features to NULL
gcc can get confused by this code and it thinks dev_features can be returned uninitialized. So initialize to NULL at the beginning to shut up the warning. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/cec-funcs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/cec-funcs.h b/include/uapi/linux/cec-funcs.h
index c451eec42a83..270b251a3d9b 100644
--- a/include/uapi/linux/cec-funcs.h
+++ b/include/uapi/linux/cec-funcs.h
@@ -895,6 +895,7 @@ static inline void cec_ops_report_features(const struct cec_msg *msg,
*cec_version = msg->msg[2];
*all_device_types = msg->msg[3];
*rc_profile = p;
+ *dev_features = NULL;
while (p < &msg->msg[14] && (*p & CEC_OP_FEAT_EXT))
p++;
if (!(*p & CEC_OP_FEAT_EXT)) {