mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
s390/qdio: clarify size of the QIB parm area
The QIB parm area is 128 bytes long. Current code consistently misuses an _entirely unrelated_ QDIO constant, merely because it has the same value. Stop doing so. Signed-off-by: Julian Wiedmann <[email protected]> Reviewed-by: Benjamin Block <[email protected]> Reviewed-by: Jens Remus <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
This commit is contained in:
parent
e14e59c125
commit
9f494438d4
3 changed files with 3 additions and 4 deletions
|
|
@ -113,7 +113,7 @@ static void set_impl_params(struct qdio_irq *irq_ptr,
|
|||
irq_ptr->qib.pfmt = qib_param_field_format;
|
||||
if (qib_param_field)
|
||||
memcpy(irq_ptr->qib.parm, qib_param_field,
|
||||
QDIO_MAX_BUFFERS_PER_Q);
|
||||
sizeof(irq_ptr->qib.parm));
|
||||
|
||||
if (!input_slib_elements)
|
||||
goto output;
|
||||
|
|
|
|||
|
|
@ -4715,8 +4715,7 @@ static int qeth_qdio_establish(struct qeth_card *card)
|
|||
|
||||
QETH_CARD_TEXT(card, 2, "qdioest");
|
||||
|
||||
qib_param_field = kzalloc(QDIO_MAX_BUFFERS_PER_Q,
|
||||
GFP_KERNEL);
|
||||
qib_param_field = kzalloc(FIELD_SIZEOF(struct qib, parm), GFP_KERNEL);
|
||||
if (!qib_param_field) {
|
||||
rc = -ENOMEM;
|
||||
goto out_free_nothing;
|
||||
|
|
|
|||
Loading…
Reference in a new issue