projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa79961
)
staging: nvec: remove unnecessary 'else' after 'return' statement
author
Pawel Lebioda
<pawel.lebioda89@gmail.com>
Sat, 5 Jul 2014 20:30:55 +0000
(22:30 +0200)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/nvec/nvec.c
b/drivers/staging/nvec/nvec.c
index 90f1c4d7fa89dbac2d29b39026d015d047996bc3..8a3dd4700bd29ca92da2ea64b7c173e91d801c13 100644
(file)
--- 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;
}
/**