mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pei Zhang <pei.zhang@intel.com>
To: linux-kernel@vger.kernel.org, usbip-devel@lists.sourceforge.net
Cc: Pei Zhang <pei.zhang@intel.com>
Subject: [PATCH] usbip: vhci_hcd: print correct info in default case
Date: Wed,  6 Dec 2017 11:43:04 +0800	[thread overview]
Message-ID: <1512531784-10617-1-git-send-email-pei.zhang@intel.com> (raw)

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

                 reply	other threads:[~2017-12-06  3:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1512531784-10617-1-git-send-email-pei.zhang@intel.com \
    --to=pei.zhang@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=usbip-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®