V4L/DVB: ir-core: Remove warining noise if decoders compiled builtin
drivers/media/IR/ir-raw-event.c:55: warning: ‘wq_load’ defined but not used
drivers/media/IR/ir-raw-event.c:222: warning: ‘init_decoders’ defined but not used
drivers/media/IR/rc-map.c: In function ‘get_rc_map’:
drivers/media/IR/rc-map.c:40: warning: unused variable ‘rc’
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/IR/rc-map.c b/drivers/media/IR/rc-map.c
index ff185c0..1a3f4b1 100644
--- a/drivers/media/IR/rc-map.c
+++ b/drivers/media/IR/rc-map.c
@@ -37,14 +37,13 @@
struct ir_scancode_table *get_rc_map(const char *name)
{
- int rc = 0;
struct rc_keymap *map;
map = seek_rc_map(name);
#ifdef MODULE
if (!map) {
- rc = request_module(name);
+ int rc = request_module(name);
if (rc < 0) {
printk(KERN_ERR "Couldn't load IR keymap %s\n", name);
return NULL;