Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754646AbdLFDfU (ORCPT ); Tue, 5 Dec 2017 22:35:20 -0500 Received: from mga07.intel.com ([134.134.136.100]:30346 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754406AbdLFDfS (ORCPT ); Tue, 5 Dec 2017 22:35:18 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,366,1508828400"; d="scan'208";a="451600" From: Pei Zhang To: linux-kernel@vger.kernel.org, usbip-devel@lists.sourceforge.net Cc: Pei Zhang Subject: [PATCH] usbip: vhci_hcd: print correct info in default case Date: Wed, 6 Dec 2017 11:43:04 +0800 Message-Id: <1512531784-10617-1-git-send-email-pei.zhang@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 25 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 --- 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