staging: speakup: Fixed else after return or break warning
authorYeliz Taneroglu <yeliztaneroglu@gmail.com>
Fri, 3 Oct 2014 11:04:25 +0000 (14:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:12 +0000 (10:29 +0800)
The following patch fixes the checkpatch.pl warning:

drivers/staging/speakup/kobjects.c:812 warning: else is not generally useful after a break or return

Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c

index bcc7f62654f44a124aabb93feca92a0aeac37e78..1486147f3bacd9734f5f2e00931acc1472e7272f 100644 (file)
@@ -809,10 +809,10 @@ static ssize_t message_store_helper(const char *buf, size_t count,
                        if (msg_stored == -ENOMEM)
                                reset = 1;
                        break;
-               } else {
-                       used++;
                }
 
+               used++;
+
                cp = linefeed + 1;
        }