usb: isp1760: isp1760-hcd.c: Drop condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sat, 5 Oct 2019 05:37:36 +0000 (11:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 11:01:47 +0000 (13:01 +0200)
As the "else if" and "else" branch body are identical the condition
has no effect. So drop the else if condition.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20191005053733.GA10727@saurav
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/isp1760/isp1760-hcd.c

index 320fc47..579a21b 100644 (file)
@@ -1032,8 +1032,6 @@ static int check_atl_transfer(struct usb_hcd *hcd, struct ptd *ptd,
                        urb->status = -EOVERFLOW;
                else if (FROM_DW3_CERR(ptd->dw3))
                        urb->status = -EPIPE;  /* Stall */
-               else if (ptd->dw3 & DW3_ERROR_BIT)
-                       urb->status = -EPROTO; /* XactErr */
                else
                        urb->status = -EPROTO; /* Unknown */
 /*