]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[media] pulse8-cec: fix compiler warning
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 11 Sep 2016 08:57:30 +0000 (05:57 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 12 Sep 2016 09:42:44 +0000 (06:42 -0300)
commitc3b809834db8b1a8891c7ff873a216eac119628d
tree3c9e45263676784095ac96100c8afbc17c6f68c1
parent34b27b13a2cd43e0d27e3ce13b96119efbbbedbc
[media] pulse8-cec: fix compiler warning

pulse8-cec.c: In function 'pulse8_connect':
pulse8-cec.c:447:2: warning: 'pa' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cec_s_phys_addr(pulse8->adap, pa, false);
  ^
pulse8-cec.c:609:6: note: 'pa' was declared here
  u16 pa;
      ^

As far as I can tell, this can't actually happen. Still, it is better to just
initialize it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/pulse8-cec/pulse8-cec.c