summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-02-19 23:29:10 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-22 08:11:18 +0100
commit0fb81bd2b8d7538d78b0b37e72df822da8c49f1a (patch)
treecaf48a7e2007c7189a748b612d35d7ef9a563b61 /drivers/usb
parente4193e0a3b7070d91f127e31fd978c87243656a1 (diff)
downloadbarebox-0fb81bd2b8d7538d78b0b37e72df822da8c49f1a.tar.gz
barebox-0fb81bd2b8d7538d78b0b37e72df822da8c49f1a.tar.xz
usb: xhci-hcd: Drop pointless bitwise or
On_hs_hub is a boolean, not a bitfiled, so usage of bitwise or is unnecessary. Replace it with a regular assignement operator. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c
index cdce0d5ecb..f97a334f01 100644
--- a/drivers/usb/host/xhci-hcd.c
+++ b/drivers/usb/host/xhci-hcd.c
@@ -849,7 +849,7 @@ static int xhci_virtdev_init(struct xhci_virtual_device *vdev)
if (top_dev->parent->descriptor->bDeviceClass == USB_CLASS_HUB &&
top_dev->parent->speed != USB_SPEED_LOW &&
top_dev->parent->speed != USB_SPEED_FULL) {
- on_hs_hub |= true;
+ on_hs_hub = true;
if (!hs_slot_id) {
struct xhci_virtual_device *vhub =
xhci_find_virtdev(xhci, top_dev->parent);