diff mbox

drivers/media/IR/ir-keytable.c::ir_getkeycode - 'retval' may be used uninitialized

Message ID 201010311518.42998.dmitry.torokhov@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Dmitry Torokhov Oct. 31, 2010, 10:18 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c
index 9186b45..f7fafff 100644
--- a/drivers/media/IR/ir-keytable.c
+++ b/drivers/media/IR/ir-keytable.c
@@ -389,6 +389,8 @@  static int ir_getkeycode(struct input_dev *dev,
 	ke->len = sizeof(entry->scancode);
 	memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode));
 
+	retval = 0;
+
 out:
 	spin_unlock_irqrestore(&rc_tab->lock, flags);
 	return retval;