projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561b29e
)
media: cec.h: initialize *parent and *port in cec_phys_addr_validate
author
Hans Verkuil
<hans.verkuil@cisco.com>
Thu, 31 Aug 2017 08:12:53 +0000
(
04:12
-0400)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Sat, 23 Sep 2017 18:59:44 +0000
(14:59 -0400)
Make sure these values are set to avoid 'uninitialized variable'
warnings. Hasn't happened yet, but better safe than sorry.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/cec.h
patch
|
blob
|
history
diff --git
a/include/media/cec.h
b/include/media/cec.h
index 9d0f983faea96bf7ce56172bc560ca0a91d09d05..16341210d3ba10e34ec02e7fd458e3b7f25b8d48 100644
(file)
--- a/
include/media/cec.h
+++ b/
include/media/cec.h
@@
-427,6
+427,10
@@
static inline u16 cec_phys_addr_for_input(u16 phys_addr, u8 input)
static inline int cec_phys_addr_validate(u16 phys_addr, u16 *parent, u16 *port)
{
+ if (parent)
+ *parent = phys_addr;
+ if (port)
+ *port = 0;
return 0;
}