Commit 2df72e7f authored by Vardan Mikayelyan's avatar Vardan Mikayelyan Committed by Felipe Balbi

usb: dwc2: Fix dead code in hcd.c

Because usb_pipetype() masks urb->pipe, the default case can never be
hit. Remove it. This cleans up a coverity warning.
Signed-off-by: default avatarVardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 39ebb05c
...@@ -4510,9 +4510,6 @@ static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb, ...@@ -4510,9 +4510,6 @@ static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb,
case PIPE_ISOCHRONOUS: case PIPE_ISOCHRONOUS:
pipetype = "ISOCHRONOUS"; pipetype = "ISOCHRONOUS";
break; break;
default:
pipetype = "UNKNOWN";
break;
} }
dev_vdbg(hsotg->dev, " Endpoint type: %s %s (%s)\n", pipetype, dev_vdbg(hsotg->dev, " Endpoint type: %s %s (%s)\n", pipetype,
...@@ -4609,8 +4606,6 @@ static int _dwc2_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, ...@@ -4609,8 +4606,6 @@ static int _dwc2_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
case PIPE_INTERRUPT: case PIPE_INTERRUPT:
ep_type = USB_ENDPOINT_XFER_INT; ep_type = USB_ENDPOINT_XFER_INT;
break; break;
default:
dev_warn(hsotg->dev, "Wrong ep type\n");
} }
dwc2_urb = dwc2_hcd_urb_alloc(hsotg, urb->number_of_packets, dwc2_urb = dwc2_hcd_urb_alloc(hsotg, urb->number_of_packets,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment