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.smir...@gmail.com>
---
 drivers/usb/host/xhci-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c
index cdce0d5ec..f97a334f0 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);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to