]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: media: lirc: Removed unnecessary else expression.
authorGulsah Kose <gulsah.1004@gmail.com>
Sat, 27 Sep 2014 19:13:33 +0000 (22:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 02:56:48 +0000 (22:56 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning lirc_parallel.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_parallel.c

index 672858a089f3861a806e5706649c95308bc42321..5156c2181016381c6a29627fce4fa4f67c03a526 100644 (file)
@@ -177,10 +177,9 @@ static unsigned int init_lirc_timer(void)
                        pr_notice("using default timer: %u Hz\n",
                                  default_timer);
                        return default_timer;
-               } else {
-                       pr_info("%u Hz timer detected\n", newtimer);
-                       return newtimer; /* use detected value */
                }
+               pr_info("%u Hz timer detected\n", newtimer);
+               return newtimer; /* use detected value */
        }
 
        pr_notice("no timer detected\n");