Message ID | CAPgLHd9HeKEN6HjFhLgo2oogGKie5Dy++09kcr6E89LnrMc=+w@mail.gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 8a0571e..ab7afe3 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c @@ -493,7 +493,7 @@ static void port100_tx_update_payload_len(void *_frame, int len) { struct port100_frame *frame = _frame; - frame->datalen = cpu_to_le16(le16_to_cpu(frame->datalen) + len); + le16_add_cpu(&frame->datalen, len); } static bool port100_rx_frame_is_valid(void *_frame)