Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3556pxu; Thu, 3 Dec 2020 17:27:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZDB19mcTtOQ2aEBfZuLd14giIeG1sVD+tHqbfSqwefD3oLemwBTVc2OEblxi52U6mIi9e X-Received: by 2002:a17:906:16d6:: with SMTP id t22mr4839895ejd.154.1607045257061; Thu, 03 Dec 2020 17:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045257; cv=none; d=google.com; s=arc-20160816; b=GDbSd+UUjBtOdyBrouJAn8vlF62SiH42br16zty5leINEm6SVilsWK7Rqx7CTaF8W4 6+ZvST39Lk09B26TxjahMtmp+zfnv2wxElnL3tfRm8crPOoGo6l7dzS2qIWc+SFsQu8/ Pk2R8hG8v4WYjczl0BTkMzLv1q4wILjWmBV5UtpXJBZakz+HsNpc+scnEIlz3D3fmkt2 y6hflDguxuK23GDC1kcYizfw2rxxenWU3XToGCZxkH53t7A/8bNcQfvuRBFbUxRYd0QR 083Pxuxyn8JYrOotIpSFGECo8f8UZl/UthtuALD4HQz987/CwpqFB5F24MxED54jftWD iZLA== 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:to:from; bh=fnyRjxwrKd1nvCsnDIUdcmnpk1OBsUfRdWGp/2bo1C4=; b=dQpZA9cIIQE1KFPU+fED2phQmfs1HgrpwhpHbZNpbz+eaNzggFA4woGQXTNq2gV32p HM66k/Syfbcam1yPgxexW1mvlbBvVzfavJIieyH2T7PatFxFeZJs4mxg8YzJ5ZHnuYJk GVtF+rY8ZpJeKJzs/8/MgyvuYTPOKxLeD9/V2s4GooU2HzvAize+B2Kig8cdJrjQdEfT TDPh+dOM85eiLG4JcZZlkhTOwKdsKGl7VT9uS4q6y66QLO2ASBmV3e6DzxJyxXNt2Wvn EtEO0Tav/z7DuP6vHJJvsasQ4cFJemsltXDopIkwjjhoRfnEbTIiYeL9fJoRjVxMtzz+ fKfg== 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 x9si481439ejc.623.2020.12.03.17.27.14; Thu, 03 Dec 2020 17:27:37 -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 S1728139AbgLDBYj (ORCPT + 99 others); Thu, 3 Dec 2020 20:24:39 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8636 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387823AbgLDBYe (ORCPT ); Thu, 3 Dec 2020 20:24:34 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFLq4pQBz15XBC; Fri, 4 Dec 2020 09:22:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:23:06 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH] drm/ttm: remove unused varibles Date: Fri, 4 Dec 2020 09:23:14 +0800 Message-ID: <1607044999-47666-9-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> References: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the following warnings drivers/gpu/drm/nouveau/nouveau_bo.c:1227:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c:1251:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] Signed-off-by: Tian Tao --- 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 7aa4286..9465f56 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1228,7 +1228,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)) @@ -1242,7 +1241,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); } -- 2.7.4