Code is correct since the value and final target are both little-endian.

Signed-off-by: David Laight <david.lai...@aculab.com>
---
 drivers/usb/host/xhci-ring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 2315be1..0420daf 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2979,7 +2979,7 @@ static int prepare_ring(struct xhci_hcd *xhci, struct 
xhci_ring *ep_ring,
                        union xhci_trb *trb = ep_ring->enqueue;
                        unsigned int usable = ep_ring->enq_seg->trbs +
                                        TRBS_PER_SEGMENT - 1 - trb;
-                       u32 nop_cmd;
+                       __le32 nop_cmd;
 
                        /*
                         * Section 4.11.7.1 TD Fragments states that a link
-- 
1.8.1.2



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to