Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5226367rwb; Wed, 9 Aug 2023 00:09:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQZKz1vv/ZradGY0B1F34dDpPnGAK24RhA7mTUhgAGoSfU7UAjhMWkMqWqgJU+Pm7rvbNa X-Received: by 2002:a17:902:a403:b0:1b8:6245:1235 with SMTP id p3-20020a170902a40300b001b862451235mr12673817plq.13.1691564944405; Wed, 09 Aug 2023 00:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691564944; cv=none; d=google.com; s=arc-20160816; b=bgxC6tmsR/vmJjBMAEYtfwgQvBEn5LYL0NqcGG9gi6hOXwyKpKcrjvBEdFzGIuHDyB Pzp0KTQ3c0wLTSKnOCtz7QAad6FVgeBmocxmrxDB7cEXxgrYBSvAtWIp9Y7hWhWvlaAp odzyuPWJ2ry1lPXLCIr5+RA1NCf5+GpqkyA0JjN8297FvTMi091RHfX+TtuYGlWuwucT WtLty+ocCaeoih35n+thJelbtSd7+/pRFb40waJ6m+5AUMJ0NyDD3GJXE4z5q3FPYupI rpuwiKcR2KD4SQhYaoq+i7g/jVU+/+6wsFa1FnybpnIu68/2/vg/UJq+CqmLZGPB+LfZ Z7TQ== 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=7x3tVr6j7au3GnlpZh+QkiEF5cSyQGpDvtqGDCd+f14=; fh=OLlTtDJDnR8dlg96kv05Cr1Gk0QF2k69kVi33LKN5Mw=; b=mKyoeY1tgVl6Br68xJrv2AzXpanIt/W0DD/F/XilSAnFXjGBQlEvvCTveU5OcLvg85 adcmve6+KUcvNeLCYm8FZRWYujiyvKDzG+krxDfoiqDaleGlT63Rv1AqlEQZbwToFk4G KxFPXpwfANFwT1Dxd8mCmFbIMN15a7QvVaD1OicXrrY9QYOe7bBmYXKYRmH+tkRT3wS/ cfQ7wbMa/27XmFOGtSGZwVf+wQq/QEe/WQYGWI7qPkIsp5B0BewRRENdIJJNyjw+ekhq YsKkyEG1+q6Vnl/gUNn/+1pJfdJOT0MX9A+/CYh75aGNRwaO+K60CxDVkPALfti5bXhV TJFA== 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 d7-20020a170902cec700b001bbc80a2a3asi7018067plg.299.2023.08.09.00.08.51; Wed, 09 Aug 2023 00:09:04 -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 S230087AbjHIGws (ORCPT + 99 others); Wed, 9 Aug 2023 02:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjHIGwr (ORCPT ); Wed, 9 Aug 2023 02:52:47 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72651BF7; Tue, 8 Aug 2023 23:52:44 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VpOrdpm_1691563950; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VpOrdpm_1691563950) by smtp.aliyun-inc.com; Wed, 09 Aug 2023 14:52:40 +0800 From: Jiapeng Chong To: maarten.lankhorst@linux.intel.com Cc: mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, sumit.semwal@linaro.org, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm: manager: Remove the unused variable prev Date: Wed, 9 Aug 2023 14:52:29 +0800 Message-Id: <20230809065229.71300-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c 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_BLOCKED,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 Variable prev is not effectively used, so delete it. drivers/gpu/drm/drm_gpuva_mgr.c:1079:32: warning: variable ‘prev’ set but not used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/drm_gpuva_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gpuva_mgr.c b/drivers/gpu/drm/drm_gpuva_mgr.c index f86bfad74ff8..afa5330445b3 100644 --- a/drivers/gpu/drm/drm_gpuva_mgr.c +++ b/drivers/gpu/drm/drm_gpuva_mgr.c @@ -1076,7 +1076,7 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr, u64 req_addr, u64 req_range, struct drm_gem_object *req_obj, u64 req_offset) { - struct drm_gpuva *va, *next, *prev = NULL; + struct drm_gpuva *va, *next = NULL; u64 req_end = req_addr + req_range; int ret; @@ -1206,7 +1206,6 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr, } } next: - prev = va; } return op_map_cb(ops, priv, -- 2.20.1.7.g153144c