[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1486698715-81145-1-git-send-email-perry.hooker@gmail.com>
Date: Thu, 9 Feb 2017 20:51:55 -0700
From: Perry Hooker <perry.hooker@...il.com>
To: gregkh@...uxfoundation.org
Cc: Larry.Finger@...inger.net, florian.c.schilhabel@...glemail.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Perry Hooker <perry.hooker@...il.com>
Subject: [PATCH] staging: r8712u: remove unnecessary le32_to_cpu
This patch fixes the following sparse warning:
drivers/staging/rtl8712/usb_ops_linux.c:212:33: warning: cast to restricted __le32
Signed-off-by: Perry Hooker <perry.hooker@...il.com>
---
drivers/staging/rtl8712/usb_ops_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c
index fc6bb0b..259ef8f 100644
--- a/drivers/staging/rtl8712/usb_ops_linux.c
+++ b/drivers/staging/rtl8712/usb_ops_linux.c
@@ -209,7 +209,7 @@ static void r8712_usb_read_port_complete(struct urb *purb)
precvbuf->transfer_len = purb->actual_length;
pbuf = (uint *)precvbuf->pbuf;
- isevt = le32_to_cpu(*(pbuf + 1)) & 0x1ff;
+ isevt = *(pbuf + 1) & 0x1ff;
if ((isevt & 0x1ff) == 0x1ff) {
r8712_rxcmd_event_hdl(padapter, pbuf);
skb_queue_tail(&precvpriv->rx_skb_queue, pskb);
--
2.4.11
Powered by blists - more mailing lists