Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4628217img; Tue, 26 Mar 2019 13:17:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxePcdmedRrfWvqargMj/3Tr+pTOupalmhikePmZhlELXFZH8D720c4qJqTYp6jdv3QSZhA X-Received: by 2002:a63:1d03:: with SMTP id d3mr30666239pgd.42.1553631423190; Tue, 26 Mar 2019 13:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553631423; cv=none; d=google.com; s=arc-20160816; b=OcpFStLfdsZSoKNWzbgp7hzyie/ZhUBGnj33lN6ISqzCoXppWdp8Al62YJHILlOwra //DXUOv6kVrln5MIaQV2dW89DwXgbyReWBFI8Ju86vof0Kuy41MQxnRaB6ZfKZLYYVQ8 UOM/2CFIQK/hFik8WuTYfAX4BrLd0b+mdiyLjA5mqj/jX4a0SREU7yEzAB4CRE92L7qL grrGjJYkZmXQQ43iTbjDHmmncEfcvyBvjMtrgfWc9b8Bwam07WxQM8gKsmzwqOL00Vdq hcH9yhGarH2h/LwQyqU+sLvhe9irG5oHcU26fTseRCCpmU+cwpw+awtvMUxPW6/RCNRj 1EOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b5zMrbv4HXLs7N/jpV0cgVroc3dOnsgGLlkvfpNHIpc=; b=c9h6LQPw9CEbExilvC1Wrxtuk0T5HdCeKn3ipJJ71wh+cHAYNML8r/hacVtJiIuP6E XxFyn2iDOF1ia2ewkYxp4/WbomX2aRwcXtkU1MEUmpvuDQDY+ud5WYlISdMwua37hLxl 9LXzfgOIAq/Kxj8+h6WgcAPA9/Aos4hmTQpptLPs3SM5cC37MKYZuSMRoQ6CPon5hPHo BTOQdRbSIc2QPvywXp3IBvY/Er29If0fmxvhCpAiuK8M+GVRp4mPnIR9NZA/Yx+4Iopd y5HMngW7mELVGbe0qnS7gt1bFPteAw+wNcDF/7/ygGOWJHpyFQCJOXGHVmozmd4AI43L i3Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JMSJTXlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si16906613pgk.54.2019.03.26.13.16.47; Tue, 26 Mar 2019 13:17:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JMSJTXlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732601AbfCZUQK (ORCPT + 99 others); Tue, 26 Mar 2019 16:16:10 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51572 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732073AbfCZUQK (ORCPT ); Tue, 26 Mar 2019 16:16:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id 4so14027445wmf.1; Tue, 26 Mar 2019 13:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b5zMrbv4HXLs7N/jpV0cgVroc3dOnsgGLlkvfpNHIpc=; b=JMSJTXlHyb3jBKAw6tqBAykxqAANUMzeENoPXFppgja9eQRXIWUl50QH2/lGQsCSxl L8OjvAacsFJVed4xsg8fjjClmCWrLbaJ1d+ABpTFTegi3Mv7F066ni+D1VyKzF7qW5lk j4oDfaC33yQf1pvhJb/eQxvJE/z/dyGSmKVykxFXtPSzm32dRcVjKxs5Pzk0EtvaSokF VPZn1tspRyBKcXQW1Hcm9WY6FhVlBcuV9Cj7HrrTjhYYdqrnNQtW6cUvsMCIamZa9AmT wBEHh5SwHc9HlygfBH14ymA/HrKmjDBt/WyyPWjGLteeXtccEJ0cnmfeyYhySYk3dkIU kP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=b5zMrbv4HXLs7N/jpV0cgVroc3dOnsgGLlkvfpNHIpc=; b=FRiqhbdlMzMwQ2DlnPPPyCdeyRh6keHjf/4wPsH1NhwVZxRn96ZAOkMHwRAcLnquir OYfT88IaPCA2feOMgfNi4uLimrLZJnr5+J6vRPnfaSmAN5CoCLnc9XRkXOnAOZ8iv9zJ k00kcy5xRe7zkM64LfjY8ynNufgp8K9WlEzFbQCY/f2/rxZhCZ+DHvGsARrIp2KGC5K+ F2r29zuOkgRkwT1MG7LQkSvVjtXJLFLk08KlRivDELMB7TotDOO7L79cRcIWA2BJA33C kHBNL9LZOH2OoEgCHXu7+38bN3feonyAMFsb4NFiUtygbLr/CKNoIDCqIb2ZB2UHdhBd E+dw== X-Gm-Message-State: APjAAAWp6wJB9ZjisDuV19v1uBQS6IXAockeUBxFspmoul9u5vLKvYIb /6tHEEZn9rwxfdjqgM+X2V4= X-Received: by 2002:a7b:c7d0:: with SMTP id z16mr16902969wmk.136.1553631368470; Tue, 26 Mar 2019 13:16:08 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id i17sm6890023wrs.44.2019.03.26.13.16.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 13:16:07 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 37F9C1142374; Tue, 26 Mar 2019 21:16:06 +0100 (CET) From: Mathieu Malaterre To: Greg Kroah-Hartman Cc: trivial@kernel.org, Mathieu Malaterre , Sarah Sharp , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB/xHCI: Remove returned value 'status' since never used Date: Tue, 26 Mar 2019 21:15:57 +0100 Message-Id: <20190326201557.20388-1-malat@debian.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The returned value in status has never been used since commit 4296c70a5ec3 ("USB/xHCI: Enable USB 3.0 hub remote wakeup.") So remove 'status' completely. Remove warning (W=1): drivers/usb/core/hub.c:3671:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] Cc: Sarah Sharp Signed-off-by: Mathieu Malaterre --- drivers/usb/core/hub.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 8d4631c81b9f..15a2934dc29d 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -3668,7 +3668,6 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg) struct usb_hub *hub = usb_get_intfdata(intf); struct usb_device *hdev = hub->hdev; unsigned port1; - int status; /* * Warn if children aren't already suspended. @@ -3702,12 +3701,12 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg) if (hub_is_superspeed(hdev) && hdev->do_remote_wakeup) { /* Enable hub to send remote wakeup for all ports. */ for (port1 = 1; port1 <= hdev->maxchild; port1++) { - status = set_port_feature(hdev, - port1 | - USB_PORT_FEAT_REMOTE_WAKE_CONNECT | - USB_PORT_FEAT_REMOTE_WAKE_DISCONNECT | - USB_PORT_FEAT_REMOTE_WAKE_OVER_CURRENT, - USB_PORT_FEAT_REMOTE_WAKE_MASK); + set_port_feature(hdev, + port1 | + USB_PORT_FEAT_REMOTE_WAKE_CONNECT | + USB_PORT_FEAT_REMOTE_WAKE_DISCONNECT | + USB_PORT_FEAT_REMOTE_WAKE_OVER_CURRENT, + USB_PORT_FEAT_REMOTE_WAKE_MASK); } } -- 2.20.1