diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2015-02-27 06:52:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-28 23:38:29 -0500 |
commit | ca5b20ace87b645a436faecc0e7e697699639690 (patch) | |
tree | 9f018c29e807ca7cec8f1b526d2bbf0a88edcf82 /drivers/s390 | |
parent | 83650a2edc9b8f0838c7842b7ea595c927e79092 (diff) |
qeth: Fix command sizes
This patch adjusts two instances where we were using the (too big)
struct qeth_ipacmd_setadpparms size instead of the commands' actual
size. This didn't do any harm, but wasted a few bytes.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 642c77c76b84..3466d3cb7647 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -4218,7 +4218,7 @@ void qeth_setadp_promisc_mode(struct qeth_card *card) | |||
4218 | QETH_CARD_TEXT_(card, 4, "mode:%x", mode); | 4218 | QETH_CARD_TEXT_(card, 4, "mode:%x", mode); |
4219 | 4219 | ||
4220 | iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_PROMISC_MODE, | 4220 | iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_PROMISC_MODE, |
4221 | sizeof(struct qeth_ipacmd_setadpparms)); | 4221 | sizeof(struct qeth_ipacmd_setadpparms_hdr) + 8); |
4222 | if (!iob) | 4222 | if (!iob) |
4223 | return; | 4223 | return; |
4224 | cmd = (struct qeth_ipa_cmd *)(iob->data + IPA_PDU_HEADER_SIZE); | 4224 | cmd = (struct qeth_ipa_cmd *)(iob->data + IPA_PDU_HEADER_SIZE); |
@@ -4290,7 +4290,8 @@ int qeth_setadpparms_change_macaddr(struct qeth_card *card) | |||
4290 | QETH_CARD_TEXT(card, 4, "chgmac"); | 4290 | QETH_CARD_TEXT(card, 4, "chgmac"); |
4291 | 4291 | ||
4292 | iob = qeth_get_adapter_cmd(card, IPA_SETADP_ALTER_MAC_ADDRESS, | 4292 | iob = qeth_get_adapter_cmd(card, IPA_SETADP_ALTER_MAC_ADDRESS, |
4293 | sizeof(struct qeth_ipacmd_setadpparms)); | 4293 | sizeof(struct qeth_ipacmd_setadpparms_hdr) + |
4294 | sizeof(struct qeth_change_addr)); | ||
4294 | if (!iob) | 4295 | if (!iob) |
4295 | return -ENOMEM; | 4296 | return -ENOMEM; |
4296 | cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); | 4297 | cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); |