diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2014-09-27 22:13:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-28 22:56:48 -0400 |
commit | fb67f445495d04dfd61016cf9ac2bd1f3cff3da1 (patch) | |
tree | 83bc28eb090a971f536d465eb34e04eb84307e4e /drivers/staging/media/lirc/lirc_parallel.c | |
parent | dbc5a5b690f423ff4cde4a20d197b58bb5a18832 (diff) |
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 <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/lirc/lirc_parallel.c')
-rw-r--r-- | drivers/staging/media/lirc/lirc_parallel.c | 5 |
1 files 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"); |