Browse Source

drivers: usb: usbip: Add missing break statement to switch

Add missing break statement to prevent the code for case
USB_PORT_FEAT_C_RESET falling through to the default case.

Addresses-Coverity-ID: 143155
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gustavo A. R. Silva 8 năm trước cách đây
mục cha
commit
7c92e5fbf4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/usb/usbip/vhci_hcd.c

+ 1 - 0
drivers/usb/usbip/vhci_hcd.c

@@ -313,6 +313,7 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
 			default:
 				break;
 			}
+			break;
 		default:
 			usbip_dbg_vhci_rh(" ClearPortFeature: default %x\n",
 					  wValue);