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:
b6cb966
)
staging: et131x: Fix 'else is not generally useful after a break or return'
author
Mark Einon
<mark.einon@gmail.com>
Sun, 14 Sep 2014 15:59:04 +0000
(16:59 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:05:20 +0000
(16:05 -0700)
Fix this checkpatch warning:
WARNING: else is not generally useful after a break or return
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c
patch
|
blob
|
history
diff --git
a/drivers/staging/et131x/et131x.c
b/drivers/staging/et131x/et131x.c
index 69f414033ba29c100514f771b7ca2ce6a1a4e516..df31fee965e04a5aa8fdd76a28283080c52b867b 100644
(file)
--- a/
drivers/staging/et131x/et131x.c
+++ b/
drivers/staging/et131x/et131x.c
@@
-1529,8
+1529,8
@@
static int et131x_mdio_read(struct mii_bus *bus, int phy_addr, int reg)
if (ret < 0)
return ret;
- else
-
return value;
+
+ return value;
}
static int et131x_mdio_write(struct mii_bus *bus, int phy_addr,