]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: nvec: remove unnecessary 'else' after 'return' statement
authorPawel Lebioda <pawel.lebioda89@gmail.com>
Sat, 5 Jul 2014 20:30:55 +0000 (22:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:14:06 +0000 (12:14 -0700)
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 <pawel.lebioda89@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c

index 90f1c4d7fa89dbac2d29b39026d015d047996bc3..8a3dd4700bd29ca92da2ea64b7c173e91d801c13 100644 (file)
@@ -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;
 }
 
 /**