Skip to content

Commit 6269e4c

Browse files
rbilovolgregkh
authored andcommitted
usb: host: xhci-hub: fix extra endianness conversion
Don't do extra cpu_to_le32 conversion for put_unaligned_le32 because it is already implemented in this function. Fixes sparse error: xhci-hub.c:1152:44: warning: incorrect type in argument 1 (different base types) xhci-hub.c:1152:44: expected unsigned int [usertype] val xhci-hub.c:1152:44: got restricted __le32 [usertype] Fixes: 395f540 "xhci: support new USB 3.1 hub request to get extended port status" Cc: Mathias Nyman <[email protected]> Signed-off-by: Ruslan Bilovol <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3114bc8 commit 6269e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
11491149
}
11501150
port_li = readl(ports[wIndex]->addr + PORTLI);
11511151
status = xhci_get_ext_port_status(temp, port_li);
1152-
put_unaligned_le32(cpu_to_le32(status), &buf[4]);
1152+
put_unaligned_le32(status, &buf[4]);
11531153
}
11541154
break;
11551155
case SetPortFeature:

0 commit comments

Comments
 (0)