Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3154374rwb; Sat, 8 Oct 2022 23:15:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HLSrVuZ/CZ7LuPaUd2U1SEH8PBq2VyLTJv7BdeCemsXYlwU/6Ojv67Xe+bUdYhvuLOjqD X-Received: by 2002:a17:902:f693:b0:17f:6974:cf90 with SMTP id l19-20020a170902f69300b0017f6974cf90mr13694333plg.62.1665296113692; Sat, 08 Oct 2022 23:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665296113; cv=none; d=google.com; s=arc-20160816; b=ME4bp2xZtg/3AtoYiR19NAAfAXeU9APyHtQegXoXuLxr+EQYlHJEGnQtyptDr0H126 GHpWxYfWBe/a6ydeNvB+hfjHVqqWo+60FUlQ9+eJasib+WgAZ26mPjoiaM0Q3L8XETZp bqC5HQZtjylqEmCddWRaSmeNTuPo8m+0jMfHpPdruO/y+9iou9tuHX9VlRDbK04Xcp9V EBPPb2xLPZGKe/0jtF2WE3fsaUpj5pLBF1BWIi8amr92EaWlhX/8ht8hJKARUUUs7Wby 6GMLcQkXuTwBNlG8m+hXl2L/upzZV4GylMEyvGYHt0Rccrnc7SJPy950IkGZjoBTRklW 3aKA== 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=kK9icQ/jO1/GKAaL8vDYgidChzbIGBFKKs7R9V4fDbo=; b=R6AK8jbkMPGCyc79ATs1om8EZiXoYSw2VNViBu8aZQLJiia8iSfhscgt8U2J9fNeAf dPRh4ZoMow1FmHL0wRk7i8ITsuIy2Q3J20ZhAP6USaq55FOKnud27ZlYGqpsWRmbcQXk r0cbQy/0G6euwFMhL5j4i5F+zuWSXMnUz04UI1bxoJNXw3CqQV3poNEKqDxgHCyv0Yl0 BFKzz94MoIaeos8IjcLJtTHk1FPJ+jAPPI/++GxeMr858AMftL1xet3Y4fHBqoWF9dwJ tq2AmfMu4t7wIQ8z1Gh/X8a15QwA5k3Ef2JJEy/K7KgQb75H7vPSFYGoPiqrZyo50ERP 6ZLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j189-20020a6380c6000000b00461b2032d0bsi1143988pgd.301.2022.10.08.23.15.00; Sat, 08 Oct 2022 23:15:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229904AbiJIGDM (ORCPT + 99 others); Sun, 9 Oct 2022 02:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbiJIGDK (ORCPT ); Sun, 9 Oct 2022 02:03:10 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEC412DA93; Sat, 8 Oct 2022 23:03:07 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VRh-kKX_1665295373; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VRh-kKX_1665295373) by smtp.aliyun-inc.com; Sun, 09 Oct 2022 14:03:04 +0800 From: Jiapeng Chong To: skashyap@marvell.com Cc: jhasan@marvell.com, GR-QLogic-Storage-Upstream@marvell.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux@armlinux.org.uk, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] scsi: qedf: Remove set but unused variable 'page' Date: Sun, 9 Oct 2022 14:02:49 +0800 Message-Id: <20221009060249.40178-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable page is not effectively used in the function, so delete it. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2348 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/qedf/qedf_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index e045c6e25090..35e16600fc63 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2951,7 +2951,6 @@ static int qedf_alloc_bdq(struct qedf_ctx *qedf) int i; struct scsi_bd *pbl; u64 *list; - dma_addr_t page; /* Alloc dma memory for BDQ buffers */ for (i = 0; i < QEDF_BDQ_SIZE; i++) { @@ -3012,11 +3011,9 @@ static int qedf_alloc_bdq(struct qedf_ctx *qedf) qedf->bdq_pbl_list_num_entries = qedf->bdq_pbl_mem_size / QEDF_PAGE_SIZE; list = (u64 *)qedf->bdq_pbl_list; - page = qedf->bdq_pbl_list_dma; for (i = 0; i < qedf->bdq_pbl_list_num_entries; i++) { *list = qedf->bdq_pbl_dma; list++; - page += QEDF_PAGE_SIZE; } return 0; -- 2.20.1.7.g153144c