mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: 00bb820755 ("[media] rc: Hauppauge z8f0811 can decode RC6")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ba13e98f2c
commit
9cdbe14fb4
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ static int get_key_haup_common(struct IR_i2c *ir, enum rc_type *protocol,
|
||||||
*protocol = RC_TYPE_RC6_MCE;
|
*protocol = RC_TYPE_RC6_MCE;
|
||||||
dev &= 0x7f;
|
dev &= 0x7f;
|
||||||
dprintk(1, "ir hauppauge (rc6-mce): t%d vendor=%d dev=%d code=%d\n",
|
dprintk(1, "ir hauppauge (rc6-mce): t%d vendor=%d dev=%d code=%d\n",
|
||||||
toggle, vendor, dev, code);
|
*ptoggle, vendor, dev, code);
|
||||||
} else {
|
} else {
|
||||||
*ptoggle = 0;
|
*ptoggle = 0;
|
||||||
*protocol = RC_TYPE_RC6_6A_32;
|
*protocol = RC_TYPE_RC6_6A_32;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue