* [PATCH] cdc_ncm: Fix the build warning
@ 2020-03-14 5:33 Alexander Bersenev
2020-03-15 7:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Bersenev @ 2020-03-14 5:33 UTC (permalink / raw)
To: bay; +Cc: Oliver Neukum, David S. Miller, linux-usb, netdev, linux-kernel
The ndp32->wLength is two bytes long, so replace cpu_to_le32 with cpu_to_le16.
Signed-off-by: Alexander Bersenev <bay@hackerdom.ru>
---
drivers/net/usb/cdc_ncm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index 5569077bd5b8..8929669b5e6d 100644
--- a/drivers/net/usb/cdc_ncm.c
+++ b/drivers/net/usb/cdc_ncm.c
@@ -1172,7 +1172,7 @@ static struct usb_cdc_ncm_ndp32 *cdc_ncm_ndp32(struct cdc_ncm_ctx *ctx, struct s
ndp32 = ctx->delayed_ndp32;
ndp32->dwSignature = sign;
- ndp32->wLength = cpu_to_le32(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32));
+ ndp32->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32));
return ndp32;
}
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] cdc_ncm: Fix the build warning
2020-03-14 5:33 [PATCH] cdc_ncm: Fix the build warning Alexander Bersenev
@ 2020-03-15 7:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-03-15 7:41 UTC (permalink / raw)
To: bay; +Cc: oliver, linux-usb, netdev, linux-kernel
From: Alexander Bersenev <bay@hackerdom.ru>
Date: Sat, 14 Mar 2020 10:33:24 +0500
> The ndp32->wLength is two bytes long, so replace cpu_to_le32 with cpu_to_le16.
>
> Signed-off-by: Alexander Bersenev <bay@hackerdom.ru>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-15 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 5:33 [PATCH] cdc_ncm: Fix the build warning Alexander Bersenev
2020-03-15 7:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®