Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1335298pxf; Fri, 2 Apr 2021 07:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSZnhK5kbnwB4Agv1mYK6Ehd7N6PR9p+31s+wzcUHv/Pam09ulEgW29KiKSuKMFMtKyshM X-Received: by 2002:a02:c6c4:: with SMTP id r4mr12845698jan.77.1617374846845; Fri, 02 Apr 2021 07:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617374846; cv=none; d=google.com; s=arc-20160816; b=IotHztfGTaAqQNTAOivYHhp36ddcz5AWDWSa7FkfyqYEnTZhsLejaIZS72pva0QMVr sWOsOUmWZx9Q05xniNtNvc8qqOajXFMx0JFcucDDX5EQZVLrrCWkRNCi8VSoyIFnppWl PejYNEOuE7nx+DDTsno9hASOP9TJI2VjswRGcuSEnHyZnZR99lezgeD9M9OMNy6Pt5S+ dd2GFMS6AGdf7N1POKZyZcjgPIUM7AQyIwTBJD/NdgyK53LfSsL+g3vfPJnO/0yvzvfQ fcCVv3bIVOSDNifOv5AhbQFBCEhl9s01jPToaBPF8oQHuMZt+fR1OtY8nkYyOCy3LiBy OMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=s+M9nkWIog9efcIEb+ZUjqz6PFJtg46I+Ggp5SqPNIc=; b=o6sZqJeR4azH/gEPYgItIRtrHZz9tHbKZq/+H2NkPFT2D/xihwc34K4HTfpdEJLJl7 XFHk3kXdW8s/2Ll6B/wJC+smIOGNiyFZVu3RdJYmo4pBNPxIA/D1cZAR5b5LAtmtO28U CxkOUOsfSOci9zHQxo2BOqzvMSheJcqPz9s/v7Eq7FeIrYn856Xd4p5M6dRSJy9dkWPB I9/yTOxQ3RCzzjbcYoUoyp93AVw9+2CvNauEZXn3PQ2BxD3RFpJP+M0mzYrKTpRYZNwR AFywsM57x0/zHNXsRm5mi37urb5/2UoA64MZsOxI94kC+1j8XRJfarcVXWsLhu6kikpr pRkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si8580543jaj.23.2021.04.02.07.47.12; Fri, 02 Apr 2021 07:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234783AbhDBOqL (ORCPT + 99 others); Fri, 2 Apr 2021 10:46:11 -0400 Received: from mga18.intel.com ([134.134.136.126]:40102 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234361AbhDBOqK (ORCPT ); Fri, 2 Apr 2021 10:46:10 -0400 IronPort-SDR: y8Zet9CI5jWvuRxlN6t6ACVBVIvIhCyk6EAcGZhLSFJFd50h7ySMIQoHi9pX51nIA+TBkpDSEH PY53YU3ziR4g== X-IronPort-AV: E=McAfee;i="6000,8403,9942"; a="180008390" X-IronPort-AV: E=Sophos;i="5.81,300,1610438400"; d="scan'208";a="180008390" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 07:46:08 -0700 IronPort-SDR: CSsqwVgnkpUyABPya9YjKXv0gBtS3CvlbKsTVuUFjb31UqWZqChSE3ZcwLqoqYO4Cj/vP/hfmO lgNfuu+B111Q== X-IronPort-AV: E=Sophos;i="5.81,300,1610438400"; d="scan'208";a="378106000" Received: from elizondo-mobl.amr.corp.intel.com ([10.212.205.64]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 07:46:08 -0700 Message-ID: Subject: Re: [PATCH] HID: intel-ish-hid: Remove an unused variable 'ret' From: Srinivas Pandruvada To: Yang Li Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 02 Apr 2021 07:46:08 -0700 In-Reply-To: <1617357988-108792-1-git-send-email-yang.lee@linux.alibaba.com> References: <1617357988-108792-1-git-send-email-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-04-02 at 18:06 +0800, Yang Li wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/hid/intel-ish-hid/ipc/pci-ish.c:264:6: warning: variable > ‘ret’ > set but not used > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Acked-by: Srinivas Pandruvada > --- > drivers/hid/intel-ish-hid/ipc/pci-ish.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c > b/drivers/hid/intel-ish-hid/ipc/pci-ish.c > index 06081cf..61efc30 100644 > --- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c > +++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c > @@ -261,7 +261,6 @@ static void __maybe_unused > ish_resume_handler(struct work_struct *work) > struct pci_dev *pdev = to_pci_dev(ish_resume_device); > struct ishtp_device *dev = pci_get_drvdata(pdev); > uint32_t fwsts = dev->ops->get_fw_status(dev); > - int ret; > > if (ish_should_leave_d0i3(pdev) && !dev->suspend_flag > && IPC_IS_ISH_ILUP(fwsts)) { > @@ -273,7 +272,7 @@ static void __maybe_unused > ish_resume_handler(struct work_struct *work) > > /* Waiting to get resume response */ > if (dev->resume_flag) > - ret = wait_event_interruptible_timeout(dev- > >resume_wait, > + wait_event_interruptible_timeout(dev- > >resume_wait, > !dev->resume_flag, > msecs_to_jiffies(WAIT_FOR_RESUME_ACK_MS > )); >