From: Hans Verkuil <hans.verkuil@xxxxxxxxx> 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@xxxxxxxxx> --- include/media/cec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/media/cec.h b/include/media/cec.h index df6b3bd31284..b96423d7058a 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -417,6 +417,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; } -- 2.14.1