From: Tapasweni Pathak Date: Sun, 21 Sep 2014 06:21:38 +0000 (+0530) Subject: Staging: media: lirc: fixed else after return or break warning X-Git-Tag: v3.18-rc1~130^2~276 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5366563d5b1372c8ef6d2863ac315bd98674232;p=karo-tx-linux.git Staging: media: lirc: fixed else after return or break warning This patch fixes checkpatch.pl warning in file lirc_serial.c WARNING : else is not generally useful after a break or return Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c index 80d2e28a1fff..443954b6d3d8 100644 --- a/drivers/staging/media/lirc/lirc_serial.c +++ b/drivers/staging/media/lirc/lirc_serial.c @@ -529,11 +529,10 @@ static long send_pulse_homebrew(unsigned long length) if (softcarrier) return send_pulse_homebrew_softcarrier(length); - else { - on(); - safe_udelay(length); - return 0; - } + + on(); + safe_udelay(length); + return 0; } static void send_space_irdeo(long length)