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>
This commit is contained in:
Gulsah Kose 2014-09-27 22:13:33 +03:00 committed by Greg Kroah-Hartman
parent dbc5a5b690
commit fb67f44549
1 changed files with 2 additions and 3 deletions

View File

@ -177,11 +177,10 @@ static unsigned int init_lirc_timer(void)
pr_notice("using default timer: %u Hz\n", pr_notice("using default timer: %u Hz\n",
default_timer); default_timer);
return default_timer; return default_timer;
} else { }
pr_info("%u Hz timer detected\n", newtimer); pr_info("%u Hz timer detected\n", newtimer);
return newtimer; /* use detected value */ return newtimer; /* use detected value */
} }
}
pr_notice("no timer detected\n"); pr_notice("no timer detected\n");
return 0; return 0;