diff options
author | Julian Wiedmann <jwi@linux.vnet.ibm.com> | 2017-01-12 15:48:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-12 16:02:43 +0100 |
commit | 4b764d1de395090662fd0291968d5ded523f07e4 (patch) | |
tree | 403b26ca93cffe53add990059b828cbd35a2feff /drivers/s390 | |
parent | s390/qeth: drop qeth_l2_del_all_macs() parameter (diff) | |
download | linux-4b764d1de395090662fd0291968d5ded523f07e4.tar.xz linux-4b764d1de395090662fd0291968d5ded523f07e4.zip |
s390/qeth: don't convert return code twice
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 <jwi@linux.vnet.ibm.com>
Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 3025f56319e2..38fae10b3479 100644 --- 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; } |