Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3637856pxv; Mon, 5 Jul 2021 02:07:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI6AZ8Dyzd5vMEVv3zhYkButP7sRwhV/+Mvlan41XszMeoPXHeCrM9rUeCnNxuykY7fJqW X-Received: by 2002:a17:906:c14a:: with SMTP id dp10mr12712190ejc.426.1625476078318; Mon, 05 Jul 2021 02:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625476078; cv=none; d=google.com; s=arc-20160816; b=g6iY2nAjzNMvsyzuDI7KG9Ei0AcguLOHxROMnaD4f2ja2rXMkbZa8u5o3Cs9i1aW3e S0UlAjD8X+la3y7YZLK0lLc0OV6VoTX1hCl55xWpL5Ecl6vn4wDFhPQYBJwKoH//nOLp VwstamjncvBaJo6m6dXcvMUJNEn9/9eQkDNVZhq4WglwmHMxJOAQQ1LFKVxDi1If58tX oNLgXuGqxj5LCmK5UNogmMx2MHAOd521/FcTr0BgamGTRHhBv/prhDrrWbBGwShktEN5 8zx47WmYKcnO+6oQ3v0uAkaxDfe7vOEQgTxOIqVtHkomskILI3VZKNIVKArBJpJjE9Pz J3Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=grqRcNZulHgEYOkzWvpdFJ7iLZU15D/tssB4x3lwUsU=; b=nEJ12muBTjHijYI/CikQh/S8TBbHMmgjvjDgsLKLGHpIcmI/Z02+F12ex+JxSd+f15 hhCQWUX1l2Lh+HwRhsdoaEhDYr84LlGoFgju749qYV6JFr55Auo+0zfISjLRgJDhpBAV mPkSAkp0/53kQfOSfWBuilWJ+lTR+oEQGNr6LREHkAsCBhqx3AN6QT1EaIOrkkxQ1ND+ 5ls5QDxcDTRfUGyd6Jd8JkzhOJb/KUNYxHFd6pkGvi7o1+oY+C3kkLZbNihFFPKMHmLb Bf/Z6cKATlhDLvB0qrrJrvKkWqVgUOetTL9P7q1JX7bwqJI+ISMc4oT36ExR/UPSHjIO 7Yig== 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 z19si12071363edr.112.2021.07.05.02.07.35; Mon, 05 Jul 2021 02:07:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhGEJIG (ORCPT + 99 others); Mon, 5 Jul 2021 05:08:06 -0400 Received: from usmx01.baidu.com ([12.0.243.41]:39506 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230194AbhGEJIG (ORCPT ); Mon, 5 Jul 2021 05:08:06 -0400 X-Greylist: delayed 927 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Jul 2021 05:08:06 EDT Received: from BJHW-Mail-Ex14.internal.baidu.com (unknown [10.127.64.37]) by Forcepoint Email with ESMTPS id 870992DBA41C14F17D9D; Mon, 5 Jul 2021 01:49:59 -0700 (PDT) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex14.internal.baidu.com (10.127.64.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.10; Mon, 5 Jul 2021 16:49:57 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.4; Mon, 5 Jul 2021 16:49:57 +0800 From: Cai Huoqing To: , , , , , CC: , , , , "Cai Huoqing" Subject: [PATCH] drm/nouveau: remove unused varialble "struct device *dev" Date: Mon, 5 Jul 2021 16:49:48 +0800 Message-ID: <20210705084948.796-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex21.internal.baidu.com (172.31.51.15) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex14_2021-07-05 16:49:57:760 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Cai Huoqing Reviewed-by: Karol Herbst --- 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 4f3a5357dd56..c5624048de5e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1242,7 +1242,6 @@ nouveau_ttm_tt_populate(struct ttm_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)) @@ -1255,7 +1254,6 @@ nouveau_ttm_tt_populate(struct ttm_device *bdev, } drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx); } @@ -1265,14 +1263,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_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.25.1