From: Yeliz Taneroglu Date: Fri, 3 Oct 2014 11:04:25 +0000 (+0300) Subject: staging: speakup: Fixed else after return or break warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f74d5f688faea24107de37893b7fd5a0e56ac49;p=openwrt%2Fstaging%2Fblogic.git staging: speakup: Fixed else after return or break warning 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c index bcc7f62654f4..1486147f3bac 100644 --- a/drivers/staging/speakup/kobjects.c +++ b/drivers/staging/speakup/kobjects.c @@ -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; }