* [PATCH] usbip: vhci_hcd: print correct info in default case
@ 2017-12-06 3:43 Pei Zhang
0 siblings, 0 replies; only message in thread
From: Pei Zhang @ 2017-12-06 3:43 UTC (permalink / raw)
To: linux-kernel, usbip-devel; +Cc: Pei Zhang
In this switch-case logical, 2 cases will goes to default case.
The default log should exclude the upper 2 cases.
Signed-off-by: Pei Zhang <pei.zhang@intel.com>
---
drivers/usb/usbip/vhci_hcd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c
index 0585078..b0057ac 100644
--- a/drivers/usb/usbip/vhci_hcd.c
+++ b/drivers/usb/usbip/vhci_hcd.c
@@ -406,7 +406,9 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
/* FALLTHROUGH */
default:
- usbip_dbg_vhci_rh(" SetPortFeature: default %d\n",
+ if (wValue != USB_PORT_FEAT_SUSPEND &&
+ wValue != USB_PORT_FEAT_RESET)
+ usbip_dbg_vhci_rh(" SetPortFeature: default %d\n",
wValue);
dum->port_status[rhport] |= (1 << wValue);
break;
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-06 3:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 3:43 [PATCH] usbip: vhci_hcd: print correct info in default case Pei Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).