Re: [PATCH -next] NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu().

From: David Miller
Date: Wed Dec 04 2019 - 19:59:41 EST


From: Mao Wenan <maowenan@xxxxxxxxxx>
Date: Wed, 4 Dec 2019 14:37:17 +0800

> It is better to convert cpu_to_le16(le16_to_cpu(frame->datalen) + len) to
> use le16_add_cpu().
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Mao Wenan <maowenan@xxxxxxxxxx>

Please resubmit when the net-next tree is open again, right now it is
closed:

http://vger.kernel.org/~davem/net-next.html