Explorar o código

usb/xhci: Remove (__force__ __u16) before assigning DeviceRemovable and assign directly.

Struct usb_hub_descriptor.ss.DeviceRemovable has been defined as __le16
and (__force__ __u16) doesn't need.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Lan Tianyu %!s(int64=12) %!d(string=hai) anos
pai
achega
27c411c95a
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      drivers/usb/host/xhci-hub.c

+ 2 - 3
drivers/usb/host/xhci-hub.c

@@ -151,9 +151,8 @@ static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
 		if (portsc & PORT_DEV_REMOVE)
 		if (portsc & PORT_DEV_REMOVE)
 			port_removable |= 1 << (i + 1);
 			port_removable |= 1 << (i + 1);
 	}
 	}
-	memset(&desc->u.ss.DeviceRemovable,
-			(__force __u16) cpu_to_le16(port_removable),
-			sizeof(__u16));
+
+	desc->u.ss.DeviceRemovable = cpu_to_le16(port_removable);
 }
 }
 
 
 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,