Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp227379pxb; Sat, 10 Apr 2021 00:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL0J04mk24twHPO/J6RAC9owE5ZSa3M/8wnSC5X/5yYkx92EL/aE03vTrjgwRcgivgCPUv X-Received: by 2002:a17:90a:e507:: with SMTP id t7mr6940968pjy.14.1618040470159; Sat, 10 Apr 2021 00:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618040470; cv=none; d=google.com; s=arc-20160816; b=LMmWy8XoIFpwR4DYdUDIXk1a9yVhKKvucWsCJXniDqCFHQC1ol748E196ixZMBY+fY LnS9XvEDuCSaKl0vAc4Jyz3EOHqN2RmbZzptylfJPCgvgM4fXEp70pRtlP7wVcNwqSko jZJ6neBkxpLH4DZ0rA/0P0Kye38qfFtZnofX0O2yWV1s0d0lBvrz8xQkQpgxhA5A+4B7 8hGJogE5sXNCKesyP/BMud66h7XBsno0YBb2XMx8JZWg6fV8ZfO2j2Jh00BMvMbwYUta /rsYyJmZQ100PQ8xNMdYhgJfRLU8AQmdfxGI8rm37xAISw5ArPtf9SGqtyy9LW7rkCh0 I2+g== 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=hkTDUMz2vi8EtCBxI0ZUOsZAM//WkQ28qwPO8gxHrGM=; b=UmB0TLgpo38aXaq0uwHhsmXSPU1bvp1JmPD9IMIJS7kr+JB3TdixkactKMeqT/g5Dv kPLq3k4qV41DN87OqvHmeQ5AnI7N06TM055QXAsbajobAG3X2BVxl31kezaXXabWQdsZ Mj4M6kO00c7lmb+DNdeg1fpKvEQ1kOFcZZECCKm3S7cKsqP9VFSq1Zhl8PIcBPHqRj6y ZXbLifhxGIw+JO0wlPbZ0+jY8Hgz6J878mvgCYtCqJ91QWpceQDUVNNDThWTO0qbKYTW Tmkc98WRa5g+X+8MQix9wAx52T3rAFy8w6Ivo8cuOsOBfT37ucCpCGPnxHSnYgZxkvbi IqzQ== 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=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si5771369pgj.432.2021.04.10.00.40.57; Sat, 10 Apr 2021 00:41:10 -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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbhDJHkl (ORCPT + 99 others); Sat, 10 Apr 2021 03:40:41 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:32374 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhDJHkk (ORCPT ); Sat, 10 Apr 2021 03:40:40 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 7D2C14000DE; Sat, 10 Apr 2021 15:40:22 +0800 (CST) From: Wan Jiabing To: Ben Skeggs , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , Lyude Paul , Wan Jiabing , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] drm/nouveau/nvkm: Remove unnecessary assignment Date: Sat, 10 Apr 2021 15:40:00 +0800 Message-Id: <20210410074012.1258923-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQhpJT1ZJQ0xKHRoZQ0gdTBhVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pz46Tio*ND8RDhlJIjwWChdI Hk9PCjFVSlVKTUpDS09LT0lIS05DVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJSU9CNwY+ X-HM-Tid: 0a78bab9814ad991kuws7d2c14000de Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The declaration with assignment here is confusing. Remove the unnecessary assignment. Signed-off-by: Wan Jiabing --- drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c index 96aca0edfa3c..c51bac76174c 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c @@ -313,7 +313,7 @@ nv50_instobj_dtor(struct nvkm_memory *memory) struct nv50_instobj *iobj = nv50_instobj(memory); struct nvkm_instmem *imem = &iobj->imem->base; struct nvkm_vma *bar; - void *map = map; + void *map; mutex_lock(&imem->mutex); if (likely(iobj->lru.next)) -- 2.25.1