Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp308529pxy; Wed, 21 Apr 2021 03:37:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKCMxQHMln+omVlVv6jQaAP/niB0bCF3dj5r/v1sFZbpQ/UQGAe4F773C5ZEPJ3M35YMMd X-Received: by 2002:a17:906:584b:: with SMTP id h11mr20674704ejs.463.1619001478922; Wed, 21 Apr 2021 03:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619001478; cv=none; d=google.com; s=arc-20160816; b=TUt6ghVq9Ys9pG7ssmt4NZwq6qfS6uKqRgok6zNrei82JlkbMCYGm1sYWOmqYHg57+ 1bI/uwT+e4Pf2ZEAZ6SiSNUyphc0ewMX/yv9JNRVKh/xJgZhZ9buRQ+5NqAJwsyhWcjd MjyStyc3LRqFvvVcnz1yq6AqPaOBRX9jqVpwFclCm9m6B3zTX5qYKuVY7scmVpbs00pb /ttNlXWNANoA6LT1q2E5d9X462YR4gHdaX3i/6lm/Zm8kftixxmiSILPBfsBuj/6fmgz 8QVpLwuWXbmGxNi4W0XKhcZzcq75xyD5q78F7nqbShalHLJdJjFGfUtRMdiY7BDqqBcy PRSA== 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=mjXFPDzk82SFH4R6oNqiDztdllrHE61Rsi4UVBWZy7U=; b=WNQA6uUv2pUYa5BPNQeUI4YCc38qarh2wKcAm/qD8QhVHp1EsPQF+K2nNzMPA9y0C5 dmrFbrRtMZgz2ZPtthyNptsE5Q0GHOGDF4z60k1+jUekdd0Kfw2IHf5GTBNd2jMu5V9H wcBi3oeFmUJ0jVTc6Xw7Cez7llcc9N4aa7Y/0K3ax62tZz0SsdLFs5oHMevxxuFBi+h8 r1BScBidUczYYbzvwacS+DhCAPUsuMdWxE9Iyw5qBYQbxxzFjzXVnoESIq4zcrYxx+6/ CvOyhk9ZQRHheCXOxJWbTsbzwhLxJBQRgCuWODLraPri0Ei5j01p6QL5uBWDv9wXOpEy OQxg== 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 y13si1879271edc.327.2021.04.21.03.37.36; Wed, 21 Apr 2021 03:37:58 -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 S235862AbhDUKe5 (ORCPT + 99 others); Wed, 21 Apr 2021 06:34:57 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:56014 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234554AbhDUKe4 (ORCPT ); Wed, 21 Apr 2021 06:34:56 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UWI5XGV_1619001242; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UWI5XGV_1619001242) by smtp.aliyun-inc.com(127.0.0.1); Wed, 21 Apr 2021 18:34:22 +0800 From: Jiapeng Chong To: jejb@linux.ibm.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH v2] scsi: a100u2w: Remove useless variable Date: Wed, 21 Apr 2021 18:33:59 +0800 Message-Id: <1619001239-129796-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/scsi/a100u2w.c:1092:8: warning: variable ‘bios_phys’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Delete phys_to_virt(). drivers/scsi/a100u2w.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index 66c5143..c99224a 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c @@ -1089,7 +1089,6 @@ static int inia100_probe_one(struct pci_dev *pdev, int error = -ENODEV; u32 sz; unsigned long biosaddr; - char *bios_phys; if (pci_enable_device(pdev)) goto out; @@ -1141,7 +1140,6 @@ static int inia100_probe_one(struct pci_dev *pdev, biosaddr = host->BIOScfg; biosaddr = (biosaddr << 4); - bios_phys = phys_to_virt(biosaddr); if (init_orchid(host)) { /* Initialize orchid chip */ printk("inia100: initial orchid fail!!\n"); goto out_free_escb_array; -- 1.8.3.1