Input: ir-keytable - fix uninitialized variable warning
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 31 Oct 2010 22:18:42 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Nov 2010 01:05:43 +0000 (21:05 -0400)
commit47c5ba53bc5e5f88b5d1bbb97acd25afc27f74eb
tree2255f8b182494f0af2681b94396c1212d8094955
parent50440c6dcccbf90ee3629407cb13ca09cab7d900
Input: ir-keytable - fix uninitialized variable warning

We were forgetting to set up proper return value in success path causing
ir_getkeycode() to fail intermittently:

drivers/media/IR/ir-keytable.c: In function 'ir_getkeycode':
drivers/media/IR/ir-keytable.c:363: warning: 'retval' may be used
uninitialized in this function

Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/IR/ir-keytable.c