Change the type of 'c' to bool and drop the trigrah.

Signed-off-by: Andrey Smirnov <[email protected]>
---
 drivers/usb/host/ehci-hcd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 03ab56b30..f0d899e82 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -273,7 +273,8 @@ ehci_submit_async(struct usb_device *dev, unsigned long 
pipe, void *buffer,
        uint32_t *tdp;
        uint32_t endpt, token, usbsts;
        uint32_t status;
-       uint32_t c, toggle;
+       uint32_t toggle;
+       bool c;
        int ret;
 
 
@@ -290,8 +291,7 @@ ehci_submit_async(struct usb_device *dev, unsigned long 
pipe, void *buffer,
 
        qh = &ehci->qh_list[1];
        qh->qh_link = cpu_to_hc32((uint32_t)ehci->qh_list | QH_LINK_TYPE_QH);
-       c = (dev->speed != USB_SPEED_HIGH &&
-            usb_pipeendpoint(pipe) == 0) ? 1 : 0;
+       c = dev->speed != USB_SPEED_HIGH && !usb_pipeendpoint(pipe);
        endpt = QH_ENDPT1_RL(8) | QH_ENDPT1_C(c) |
                QH_ENDPT1_MAXPKTLEN(usb_maxpacket(dev, pipe)) |
                QH_ENDPT1_H(0) |
-- 
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to