Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1165451pxf; Fri, 2 Apr 2021 03:07:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfCcCv51/xXUD3R+jxSvsIMFEOo/AEYOnq22FpyaM3CPMnfgRXqsdcQkeIJEJwZnX689LC X-Received: by 2002:a92:d5ce:: with SMTP id d14mr10621810ilq.122.1617358051569; Fri, 02 Apr 2021 03:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617358051; cv=none; d=google.com; s=arc-20160816; b=1DBz58C1D7BGJ9kk7+kW0YQJduVJqtw5iuaN6mkvYDrcgH89SF81CbrNC00KJ0B81z G9343HWSuByNvGzi7y+uzlTsqyc+hGiHJCtpqB1s6dVZ1fwbJOf1z9XytVf61MkCSTPz a4QEG4Lh6cRkCcJ2bqYA2xppC0CPmyIEguYOq1hse3ezsg7rCukvirw4gcHocMb+oV2e UT1WlftqRLe39+HX1qHOBWUu5Q4CtYgUCurzwtfKLn69XiYdXDbXc7TMQY866jszf0ZE 7G/xp8yO7EOBBYVblcpgnCzfPKuGDbhhoCkblLlbBsrD8mYSi2z/o7EQ4gmyRHIWH1VO aBMA== 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 :message-id:date:subject:cc:to:from; bh=D63ITBN0Ijm1wkKKctOEejqZvDLB2VKsaJHYBIuf+dA=; b=VmrsZ0G+CDwAMbPTc0AWcfNMv1dUXjpYgeL+PETjUqI1F2COlYwzRMCt0cnjVOnkix HpuvWaIm9OVJenI7HgaA3VqG4hw8ffVIoQCTx6hxV5Ed9cSEJij01FdL90R4Kc3cPJpA AKrjh5USDJp/IZMxhsx/4tqqvN+F9yKZflXwSXh5rD5xl0jJFyQ+CO35o44wUWLCOe7W kWFGVB9vsdx7TYVSvr+mFtjzsxWtN6A+Kj04IwercsHWH1L9JHdVgfc11RCnXeUaUvnC d2kFm+CSD7bCQ2IeY0XMjbplG2hp3gEA3QLQUcEDIS5vEKsengIzeA9io7dWK9RT9F5G XfyA== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si7966249jas.90.2021.04.02.03.07.13; Fri, 02 Apr 2021 03:07:31 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbhDBKGf (ORCPT + 99 others); Fri, 2 Apr 2021 06:06:35 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:43196 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhDBKGc (ORCPT ); Fri, 2 Apr 2021 06:06:32 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UUEJ78d_1617357989; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UUEJ78d_1617357989) by smtp.aliyun-inc.com(127.0.0.1); Fri, 02 Apr 2021 18:06:29 +0800 From: Yang Li To: srinivas.pandruvada@linux.intel.com Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] HID: intel-ish-hid: Remove an unused variable 'ret' Date: Fri, 2 Apr 2021 18:06:28 +0800 Message-Id: <1617357988-108792-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=n Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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)); -- 1.8.3.1