V4L/DVB: ir-core: Remove warining noise if decoders compiled builtin
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Apr 2010 22:04:06 +0000 (19:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:14 +0000 (12:57 -0300)
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>
drivers/media/IR/ir-raw-event.c
drivers/media/IR/rc-map.c

index 6a4445e5db1a67bdf708f0e272f6b71c2cf01d17..b49d01256be3f10d414a9e8d6c1f481b03ecb74a 100644 (file)
@@ -50,9 +50,10 @@ static DEFINE_SPINLOCK(ir_raw_handler_lock);
        _sumrc;                                                             \
 })
 
-
+#ifdef MODULE
 /* Used to load the decoders */
 static struct work_struct wq_load;
+#endif
 
 static void ir_raw_event_work(struct work_struct *work)
 {
@@ -218,6 +219,7 @@ void ir_raw_handler_unregister(struct ir_raw_handler *ir_raw_handler)
 }
 EXPORT_SYMBOL(ir_raw_handler_unregister);
 
+#ifdef MODULE
 static void init_decoders(struct work_struct *work)
 {
        /* Load the decoder modules */
@@ -229,6 +231,7 @@ static void init_decoders(struct work_struct *work)
           it is needed to change the CONFIG_MODULE test at ir-core.h
         */
 }
+#endif
 
 void ir_raw_init(void)
 {
index ff185c054267caef50996594dfffe3f054926122..1a3f4b123a37a995e3d99fc2f127597d081d1641 100644 (file)
@@ -37,14 +37,13 @@ static struct rc_keymap *seek_rc_map(const char *name)
 
 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;