NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu().
authorMao Wenan <maowenan@huawei.com>
Mon, 9 Dec 2019 13:08:45 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Dec 2019 22:27:26 +0000 (14:27 -0800)
commit718eae277e62a26e5862eb72a830b5e0fe37b04a
tree4de9e0afed2d139bec3f80425c1f8aa057227433
parent4a63ef710cc3e79ce58b46b122118e415a44b3db
NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu().

Convert cpu_to_le16(le16_to_cpu(frame->datalen) + len) to
use le16_add_cpu(), which is more concise and does the same thing.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/port100.c