Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp265533pxf; Thu, 8 Apr 2021 02:35:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwKsp7oPoFH15GeVmCWR6RsRVOKQCjmV3SW6VBFb3LfI4v6esdZ+1x5UDwIFWVES8Lp/9u X-Received: by 2002:a17:902:edd5:b029:e9:7477:5f0a with SMTP id q21-20020a170902edd5b02900e974775f0amr4924124plk.81.1617874547536; Thu, 08 Apr 2021 02:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617874547; cv=none; d=google.com; s=arc-20160816; b=b637VYdpzeWhEhayXv5IWjAlKcK757RXFC8+e2aNwieMJXBscZomKCpCVqA56EhVDD Zi00tSR2M7oddBbHSd8gE2oiwqRprOFpvcYfpgyr05QL2AiU1Y/7iWtHDNok2DeDO6qT 5mLYNO4oN//kZN5IQ8dOyc4UCTnUnk+sAaCKcAdUtCdYfguSdUL37qPKwWsGUmzkqV7Y 6ncfmLX8vn4lhIv5NIAO2zYmiV773aAKGFaRGGuKXPTLMY6A8LntQOhGS9H1dk7CFvrb Mwa0qkybguIigG2LaMTlMHMvyM3Y2nzWFwEdp/qRBzeXyaVGl0Jp7BPbn+fXmopMMh2+ zUMw== 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=D5jEwqZ7Z73IkDyrLJlbGoHxtRntN9G1eOr7E/pyqyc=; b=I6thJqYQPqPX/T/HZpceYucz58EfoDhPvHhdVzcFTVrnSloy+JFosnaAq0D5kH1XIe adlnqmp64zb/H8a4x8oJfjvmULlIngrwl4Hp/X/F/ySod6Crojz2arPr3oKBA51WCAZy wgS3UAVGzaRSUOMdBRdLYhXCI/B/nNfuPbhieic976MOYRdeQhepeRG84xaKNPUq9EQk gA6xV9LOxU+w0pkiHM5RMK3/jhqfM+DNeQJNJ4T9/n6ftOlwOs2SKX7Suqsp7Q+Q7Qe6 OWTxHT3++0826OJ1+DCZSUb1BS7svtk5pF4QH0KvgC+/I79X98q+25MAc1reyV9BnxGP a2Og== 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 k6si1507385plt.139.2021.04.08.02.35.35; Thu, 08 Apr 2021 02:35:47 -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 S231233AbhDHJev (ORCPT + 99 others); Thu, 8 Apr 2021 05:34:51 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:56169 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbhDHJet (ORCPT ); Thu, 8 Apr 2021 05:34:49 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0UUt8r04_1617874471; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUt8r04_1617874471) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 17:34:37 +0800 From: Jiapeng Chong To: airlied@linux.ie Cc: linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] agp: Remove useless variable Date: Thu, 8 Apr 2021 17:34:31 +0800 Message-Id: <1617874471-36338-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/char/agp/via-agp.c:131:28: warning: variable ‘current_size’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/char/agp/via-agp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c index 87a92a0..dc594f4 100644 --- a/drivers/char/agp/via-agp.c +++ b/drivers/char/agp/via-agp.c @@ -128,9 +128,6 @@ static int via_fetch_size_agp3(void) static int via_configure_agp3(void) { u32 temp; - struct aper_size_info_16 *current_size; - - current_size = A_SIZE_16(agp_bridge->current_size); /* address to map to */ agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, -- 1.8.3.1