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:
c07cbf2
)
s390/qeth: don't convert return code twice
author
Julian Wiedmann
<
[email protected]
>
Thu, 12 Jan 2017 14:48:38 +0000
(15:48 +0100)
committer
David S. Miller
<
[email protected]
>
Thu, 12 Jan 2017 15:02:43 +0000
(10:02 -0500)
qeth_l2_send_groupmac() already translates the return code, so
calling qeth_setdel_makerc() a second time only produces garbage.
Signed-off-by: Julian Wiedmann <
[email protected]
>
Reviewed-by: Thomas Richter <
[email protected]
>
Reviewed-by: Ursula Braun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/s390/net/qeth_l2_main.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_l2_main.c
b/drivers/s390/net/qeth_l2_main.c
index 3025f56319e2e57df46ec46470a4dbce4fb64653..38fae10b347943c42aae0a07a91fdf5de77a30ad 100644
(file)
--- a/
drivers/s390/net/qeth_l2_main.c
+++ b/
drivers/s390/net/qeth_l2_main.c
@@
-210,8
+210,7
@@
static int qeth_l2_write_mac(struct qeth_card *card, struct qeth_mac *mac)
qeth_l2_send_setdelmac(card, mac->mac_addr,
IPA_CMD_SETVMAC));
} else {
- rc = qeth_setdel_makerc(card,
- qeth_l2_send_setgroupmac(card, mac->mac_addr));
+ rc = qeth_l2_send_setgroupmac(card, mac->mac_addr);
}
return rc;
}