Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1183701pxf; Fri, 9 Apr 2021 02:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDFIS/rPUY9Axp3DAYN/YUg621e26y+LypufRnj1e46/qxtt2l2BsdlUVohCg/9GyLINd/ X-Received: by 2002:a17:902:8f8d:b029:e7:4a2f:1950 with SMTP id z13-20020a1709028f8db02900e74a2f1950mr11681568plo.77.1617958992110; Fri, 09 Apr 2021 02:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617958992; cv=none; d=google.com; s=arc-20160816; b=OcLb5LVXN6cu+hIcZ5HOguFPFw4mWxmdzRC3SfxTidC6j3dBHJFCso2t2Aoh9oyNef FTgWNrxNHiU7pgFMwBIBA7VsvH7MTSyba0VdwJeCDqi5YA9p69RZtkOQuz5CRYFl71V5 mvcsoGX9E5a44179zrt0ZVNd0mufnM1XzI6EG/g9IXbztmVypfyqyF57kmy/oJJiW+eY mHsdO7neGMueJIH6voZMT4CDRnGpCtzA+O1WYzULt14R0x5Q1PcR41wnzTQHbyKerUsk 1gCKZcTdakX9I6w+MKBFCWqbjV8rtAdRS9QNoeTxfGwqisQXiOja3zIrOjQG9DIabNCb 6RjQ== 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=YnfYCxQZnU9+4hWcfVilLGMWwNpKvcc5UIDgb3kATCQ=; b=qXlWbj7A8R1X6iHbDh6zK1We3U7Cf2ZJWUQPmL2/iLm+7vwyAD+iBn3KOZ9dkfZOtL tKDDbPchnGm5XNt9OMpuLhfOeY2stGhcXaD89ASJLge5qGSBrAUvJleVUOQiliwEn994 iddPYgVJ5g8rpnKSOofNye542FZd4f8nYyHEGBdxFksMMNFfjXPWFv3LAzQ/D0sOYCVK B3EpXILj8oDWwMGEawDOoQjhbUGFdedsa2kQwv2H/fxepPGev2H9wXCATtbcMa5mFGSY n6iQXBJkN28Zrkxl6zSNaUf0vC2lo/vCdDemVFSUyrxtHIGk80eEkhZ9WHRQLO3vEFhu aW8Q== 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 s5si2141021pgi.376.2021.04.09.02.03.00; Fri, 09 Apr 2021 02:03:12 -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 S232490AbhDIJB0 (ORCPT + 99 others); Fri, 9 Apr 2021 05:01:26 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:56205 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhDIJB0 (ORCPT ); Fri, 9 Apr 2021 05:01:26 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUyvAMd_1617958862; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUyvAMd_1617958862) by smtp.aliyun-inc.com(127.0.0.1); Fri, 09 Apr 2021 17:01:12 +0800 From: Jiapeng Chong To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] Input: apbps2 - remove useless variable Date: Fri, 9 Apr 2021 17:00:59 +0800 Message-Id: <1617958859-64707-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/input/serio/apbps2.c:106:16: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/input/serio/apbps2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/serio/apbps2.c b/drivers/input/serio/apbps2.c index 594ac4e..974d7bf 100644 --- a/drivers/input/serio/apbps2.c +++ b/drivers/input/serio/apbps2.c @@ -103,7 +103,6 @@ static int apbps2_open(struct serio *io) { struct apbps2_priv *priv = io->port_data; int limit; - unsigned long tmp; /* clear error flags */ iowrite32be(0, &priv->regs->status); @@ -111,7 +110,7 @@ static int apbps2_open(struct serio *io) /* Clear old data if available (unlikely) */ limit = 1024; while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_DR) && --limit) - tmp = ioread32be(&priv->regs->data); + ioread32be(&priv->regs->data); /* Enable reciever and it's interrupt */ iowrite32be(APBPS2_CTRL_RE | APBPS2_CTRL_RI, &priv->regs->ctrl); -- 1.8.3.1