Staging: media: lirc: fixed else after return or break warning
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Sun, 21 Sep 2014 06:21:38 +0000 (11:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 18:13:48 +0000 (11:13 -0700)
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 <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_serial.c

index 80d2e28a1fffe2ff314b25f3a80338f4ced94eb2..443954b6d3d817a6d3221bf01caf1f6669a3af6c 100644 (file)
@@ -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)