]> git.baikalelectronics.ru Git - kernel.git/commit
rc: print correct variable for z8f0811
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Nov 2016 16:44:50 +0000 (17:44 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Nov 2016 16:45:08 +0000 (08:45 -0800)
commitdaf2312dfeb76637d9c9a8ba055449c19ed3246f
tree0c493564905b201e3451b108489986b418ac14d7
parenta8e0cc7d896190f9dea3230d812bcad312ec52a1
rc: print correct variable for z8f0811

A recent rework accidentally left a debugging printk untouched while
changing the meaning of the variables, leading to an uninitialized
variable being printed:

  drivers/media/i2c/ir-kbd-i2c.c: In function 'get_key_haup_common':
  drivers/media/i2c/ir-kbd-i2c.c:62:2: error: 'toggle' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This prints the correct one instead, as we did before the patch.

Fixes: 22cfab672e9a ("[media] rc: Hauppauge z8f0811 can decode RC6")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/i2c/ir-kbd-i2c.c