From fb67f445495d04dfd61016cf9ac2bd1f3cff3da1 Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Sat, 27 Sep 2014 22:13:33 +0300 Subject: [PATCH] staging: media: lirc: Removed unnecessary else expression. This patch fixes "else is not generally useful after a break or return" checkpatch.pl warning lirc_parallel.c Signed-off-by: Gulsah Kose Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/lirc/lirc_parallel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_parallel.c b/drivers/staging/media/lirc/lirc_parallel.c index 672858a089f3..5156c2181016 100644 --- a/drivers/staging/media/lirc/lirc_parallel.c +++ b/drivers/staging/media/lirc/lirc_parallel.c @@ -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"); -- 2.20.1