From: Pawel Lebioda Date: Sat, 5 Jul 2014 20:30:55 +0000 (+0200) Subject: staging: nvec: remove unnecessary 'else' after 'return' statement X-Git-Tag: v3.17-rc1~123^2~1115 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aea2cda3d817a53ee13ffe0105644d1ac500cc5e;p=karo-tx-linux.git staging: nvec: remove unnecessary 'else' after 'return' statement Fix the following warning reported by checkpatch.pl: WARNING: else is not generally useful after a break or return 235: FILE: drivers/staging/nvec/nvec.c:235 Signed-off-by: Pawel Lebioda Acked-by: Marc Dietrich Reviewed-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 90f1c4d7fa89..8a3dd4700bd2 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -232,8 +232,7 @@ static size_t nvec_msg_size(struct nvec_msg *msg) return 2; else if (event_length == NVEC_3BYTES) return 3; - else - return 0; + return 0; } /**