Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3249273pxx; Mon, 2 Nov 2020 04:12:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjBjBgyxsrB3eUHRHMdCXVw+CjsWYcZ1irZC/czLKyEhyL4TUm4tlVMNpJlzdVC31jFFpj X-Received: by 2002:a50:9e05:: with SMTP id z5mr14534249ede.231.1604319176335; Mon, 02 Nov 2020 04:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604319176; cv=none; d=google.com; s=arc-20160816; b=ZH/LtPwHQ9B/U+XUblO3LFib6k+RZ8yzovJkyieVB9qTrPk9Ds5z+CdRWRoN8e0fWq c4u7jI5njer5eySHP4LPvvuHUc2W5yYMX6LeNTjtB7umz8Ylt1pBwqCKKuRxoNuvMiR3 7mdrBMR1hgskG0LXq2OLFVEss+qie7EeYTMWbpJTh8d+VoQZmf8UnJ9a3PWEhyMlq5tp QNgRA+4yEdK3gFXYqGoQbv+lMuiWDafNSXAaiP3WSYCbAR9i0/XFgm+kAGijXnKfUKeI RV+9pA22m0MOhF5FELr/6NZpoL8S6apRU4xBnsyEYYUHx2Ucc8KYhLtuBG8G1jKtqd7E h9Ww== 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=TYJGkILTeCgAojCNfytzRuDQT8tBLbevwOuF7xllGBE=; b=vVVbuRu4YFfs3tM3G9VttQY7qFpQsKzJnw9AoyyN4XVfwCMBRpauR4BmnY5inn5WdR rNrly3XZqq6q4UOt8sZtgCTDAmqkCcMyKKOA0V9t6lnOXsORLMG8+9qcgo5SKZ2z/TER GZe5WJb/emlYJsPHnRmbpPIjY7sr7r5d9Jx+k0cFHXUSEC1x8yVAxwi5uKoDCkEOvIMM id94rp26GzdpxP0UZAFcytILP61gypca03Lgt1FxN+FnOqTriQ3lQY7BDP6oj1Rd5ht8 3H1fmonkJGZKr+s6QPBkDDA/BmngWWtTCo8MjDnBsyVnSxR60GyWvej9p0lsRucwDAz+ Zfhw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si7776821edm.62.2020.11.02.04.12.33; Mon, 02 Nov 2020 04:12:56 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbgKBMI5 (ORCPT + 99 others); Mon, 2 Nov 2020 07:08:57 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7401 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728487AbgKBMI5 (ORCPT ); Mon, 2 Nov 2020 07:08:57 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CPsCB4NGFz72Bl; Mon, 2 Nov 2020 20:08:54 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 20:08:44 +0800 From: Zou Wei To: , , CC: , , , Zou Wei Subject: [PATCH -next] drm/nouveu: remove unused variable Date: Mon, 2 Nov 2020 20:20:39 +0800 Message-ID: <1604319639-12227-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix variables set but not used compilation warnings: ./nouveau_bo.c:1313:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] struct device *dev; ^~~ ./nouveau_bo.c:1337:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] struct device *dev; ^~~ Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 8133377..96f00b5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1310,7 +1310,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, { struct ttm_tt *ttm_dma = (void *)ttm; struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (ttm_tt_is_populated(ttm)) @@ -1324,7 +1323,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, } drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx); } @@ -1334,14 +1332,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_bo_device *bdev, 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); } -- 2.6.2