]> 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)
commit51d3e8d3e3967407b88b7db9d16a78ff4d242f3d
tree0c493564905b201e3451b108489986b418ac14d7
parentd7b358251895213b90d89322b8823174a0d92c4a
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: 95eaa3e690f2 ("[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