Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1867880rwb; Fri, 11 Nov 2022 01:20:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UqZ2dthxSjQEGUWJASd7okdYPCTm1XnWBlZsbIYlzGO3oA+74aJ7WPN9w/zXivo+ZbziM X-Received: by 2002:a17:907:c295:b0:7ad:7d50:dec2 with SMTP id tk21-20020a170907c29500b007ad7d50dec2mr1250516ejc.37.1668158419510; Fri, 11 Nov 2022 01:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668158419; cv=none; d=google.com; s=arc-20160816; b=WlZXONE2v98+cXpKBMKetSgG5Tushs9p7NhVFM/2DhqVr/Fxtqm3Qwqt0ijQ2cyLxe 2xs+NWoO5RlY9ci+6Orr1ROQEu4jxTGOqvbJSRWERCzNFNCw6H4Po8EAHJ6TLtCNHzKS LB8OW3F2gwG/rhr3E+77m9Ytr+/7BSsxUJ2C0SNzMTXh1TM+Ra8goVDsqHLwLGGVobph ac7fxtEKtuDP65gOLW/Ey1VvnCwkJb4Ezl63xLBz5bHF0lq+L0urficURd9QvtYTJhSd ImHuj3xL/74CU/8/PLEY1Q88aHdbQ44V/NndSAvFypkm0Exc6vnWwMKtoEfpPZBDz1A6 n6KQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GVcLUoMpNuvmcAnvSWCkofTD5AVqXJ+awIcATK+mkR0=; b=RkoJiOBDGT3yyfK09RcBhs3GvdAiylxohfE4clig2cKluPAGDSoRrSH4V/UE/aaXQJ AHwU1b8KBq2jDpLVI1N3ssGPZ0pFMUXhsYFa99wPZgeP2xSbo97zD3jty81E5YbBCwvE If6PSGzr8IMk5hlMlFrmNxYoFRYiPUl/VWBgzb8yL+WKi3ThjZs35ymLMrMJphnEeXWE S82csBbUK5KAyfqBLVZDx3++Jk+76WtG6dlEKIR85pm89r4CZ5t0Ozz5yDawGBEZEOnb Z46bOSkxMZCyTFiAakRXbvK/pwKg6gwQ/wkI6ywBov1cBJZIshmdhP9+r+VkfcymU7Xt RVdw== 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 bt15-20020a0564020a4f00b004623028c586si1475023edb.141.2022.11.11.01.19.57; Fri, 11 Nov 2022 01:20:19 -0800 (PST) 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 S233247AbiKKJLu (ORCPT + 92 others); Fri, 11 Nov 2022 04:11:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233083AbiKKJLt (ORCPT ); Fri, 11 Nov 2022 04:11:49 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19CF43AD3 for ; Fri, 11 Nov 2022 01:11:47 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VUWrnzU_1668157898; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUWrnzU_1668157898) by smtp.aliyun-inc.com; Fri, 11 Nov 2022 17:11:45 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: kherbst@redhat.com, lyude@redhat.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 2/5] drm/nouveau/acr: remove the unused variable loc Date: Fri, 11 Nov 2022 17:11:27 +0800 Message-Id: <20221111091130.57178-2-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20221111091130.57178-1-jiapeng.chong@linux.alibaba.com> References: <20221111091130.57178-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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,RCVD_IN_MSPIKE_H2, 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 loc is not effectively used in the function, so delete it. drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c:221:7: warning: variable ‘loc’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3024 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c b/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c index f36a359d4531..bd104a030243 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c @@ -218,7 +218,7 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev, const struct firmware *hsbl; const struct nvfw_ls_hsbl_bin_hdr *hdr; const struct nvfw_ls_hsbl_hdr *hshdr; - u32 loc, sig, cnt, *meta; + u32 sig, cnt, *meta; ret = nvkm_firmware_load_name(subdev, path, "hs_bl_sig", ver, &hsbl); if (ret) @@ -227,7 +227,6 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev, hdr = nvfw_ls_hsbl_bin_hdr(subdev, hsbl->data); hshdr = nvfw_ls_hsbl_hdr(subdev, hsbl->data + hdr->header_offset); meta = (u32 *)(hsbl->data + hshdr->meta_data_offset); - loc = *(u32 *)(hsbl->data + hshdr->patch_loc); sig = *(u32 *)(hsbl->data + hshdr->patch_sig); cnt = *(u32 *)(hsbl->data + hshdr->num_sig); -- 2.20.1.7.g153144c