Skip to contentSkip to conversation

usb: host: xhci-mem: remove unneeded break

PATCH New [email protected] 1 participant 1 message Oct 26, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: host: xhci-mem: remove unneeded break

From: Tom Rix <[email protected]>

A break is not needed if it is preceded by a return.

---
v2: split out as single changed file

---
 drivers/usb/host/xhci-mem.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/host/xhci-mem.c +0 -1
index fe405cd38dbc..b46ef45c4d25 100644
@@ -1144,7 +1144,6 @@ int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *ud
 	case USB_SPEED_WIRELESS:
 		xhci_dbg(xhci, "FIXME xHCI doesn't support wireless speeds\n");
 		return -EINVAL;
-		break;
 	default:
 		/* Speed was set earlier, this shouldn't happen. */
 		return -EINVAL;
Signature · 1 line
2.18.1