diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2012-10-15 15:38:35 +0800 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-10-22 13:26:48 -0700 |
commit | 27c411c95a8e9ed92be658abf1d63e22873a3a66 (patch) | |
tree | 531e8805d68c07acf952e70ee396e7cc7aa8d4b3 | |
parent | 170ed807340b4db0a5e010c2e4da43cf5a2c9a29 (diff) | |
download | op-kernel-dev-27c411c95a8e9ed92be658abf1d63e22873a3a66.zip op-kernel-dev-27c411c95a8e9ed92be658abf1d63e22873a3a66.tar.gz |
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>
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 65d416c..a686cf4 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/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) 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, |