Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp327601pxf; Thu, 1 Apr 2021 02:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFWM0SX8b85/rGsb0Ie9jXhLJ26L5B4Pf79Q3PzNwoovkZczJmx+c52xoLVf5p1fTJ70cV X-Received: by 2002:a17:906:39a:: with SMTP id b26mr8210389eja.158.1617268087419; Thu, 01 Apr 2021 02:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617268087; cv=none; d=google.com; s=arc-20160816; b=s06SoWtTtiTq7dPA9dByk853MxaMrhe252MwRh3rVcxcqvqBmXdMCWbbWcL0gOQBEE TQDIS5ic45miW15ckw5Ck1C9QvMKVBBGAjXSiE6Q2uIBPt4mVrLc++3ve54lEZm5WJ9Q 9/wWbRZLWtxdNOCIT28LpQpKpHlgjMKqOxA/goozx+OtW5JqeaJIIO7kZD26KAg1qxTi 53ww2PcU/S3TcQSTd9FbqBaLiqAFGyUYc2n5Zg/2ABpstvDiQYEZINsy/6lQlPEqfn+e nE6tB/DfzhLItTPlZ4uZTX+TikkQ65zgbOLoMAp9CKkC0NVPpoI3038kPY5wwFLc/uIo 8j3g== 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=wpTwwTBuWbGqflfs4vYWNogTSkZf19A4i5I9H4k84sQ=; b=dE55wXz71pTcD78PEflQXue5AAMbnkS9FZbS4SqdOLfAbWIZZN0qrOeP7T416l7RB3 U7UUMpKRCw94FICxdnlUwHROKbii1o7QcbfPki7dkS1pDdVuwbW29/4NTBmY7XLW7UxZ V88UWHHRCiXd+pu01OTTixzLNVMnjeyae8atWt+T4KsY5CipE+PqtYH/Gg0aG8HJGsr+ vyviiTlO9gZEbcF/bNOafXfyLGNHFgd+gyjURRW4BphkHxviCbsBeWu77QfEwTctGcpb M4TPwNujLXRy7MKPxWIX0Nkx9tPkKJkdcl2P4VAnJ/N8v77Cw/M3fJcxxldZ+bijHoyg qqzQ== 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 e13si4007885edz.432.2021.04.01.02.07.43; Thu, 01 Apr 2021 02:08:07 -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 S233050AbhDAJD6 (ORCPT + 99 others); Thu, 1 Apr 2021 05:03:58 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:57868 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbhDAJDq (ORCPT ); Thu, 1 Apr 2021 05:03:46 -0400 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=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UU5S6MB_1617267817; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UU5S6MB_1617267817) by smtp.aliyun-inc.com(127.0.0.1); Thu, 01 Apr 2021 17:03:44 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: airlied@linux.ie, daniel@ffwll.ch, sumit.semwal@linaro.org, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Jiapeng Chong Subject: [PATCH] drm/nouveau: remove unused code Date: Thu, 1 Apr 2021 17:03:35 +0800 Message-Id: <1617267815-110014-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 whitescan warning: drivers/gpu/drm/nouveau/nouveau_bo.c:1287:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index f2720a0..b661d0d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1284,14 +1284,12 @@ vm_fault_t nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo) struct ttm_tt *ttm) { struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (slave) return; drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_free(&drm->ttm.bdev.pool, ttm); } -- 1.8.3.1