usb/xhci: Remove (__force__ __u16) before assigning DeviceRemovable and assign directly.
authorLan Tianyu <tianyu.lan@intel.com>
Mon, 15 Oct 2012 07:38:35 +0000 (15:38 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 22 Oct 2012 20:26:48 +0000 (13:26 -0700)
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>
drivers/usb/host/xhci-hub.c

index 65d416c08cefe9bb617bbed510fba2f8dfc28c94..a686cf4905bb80ae3e4c7b206c05d7cd2b960920 100644 (file)
@@ -151,9 +151,8 @@ static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,
                if (portsc & PORT_DEV_REMOVE)
                        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,