diff options
author | Pawel Lebioda <pawel.lebioda89@gmail.com> | 2014-07-05 22:30:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 12:14:06 -0700 |
commit | aea2cda3d817a53ee13ffe0105644d1ac500cc5e (patch) | |
tree | b81e6e6be28436f53d2ddbf479dc44b807e922d0 /drivers/staging/nvec | |
parent | fa7996178650377994b1e42ea6c00df304d48065 (diff) | |
download | talos-op-linux-aea2cda3d817a53ee13ffe0105644d1ac500cc5e.tar.gz talos-op-linux-aea2cda3d817a53ee13ffe0105644d1ac500cc5e.zip |
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 <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>
Diffstat (limited to 'drivers/staging/nvec')
-rw-r--r-- | drivers/staging/nvec/nvec.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } /** |