Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp162927pxj; Wed, 23 Jun 2021 18:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWy7guGrp5COLIORxDM4hYAoqzh6hQte7UcAs/xQfb6aMHgYida+9zHy0MJ6eg21wQmglM X-Received: by 2002:a17:906:2b01:: with SMTP id a1mr2745435ejg.133.1624498943336; Wed, 23 Jun 2021 18:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624498943; cv=none; d=google.com; s=arc-20160816; b=EVWbA3QqtI8od4egjHayGvEzeotQxUnPoILGALdw7bADUmEoYqdw95jdVvoIauw+/4 DgNqtOJ5X5b2+0cg07+zKXES7m2la/S6fqpjTA4g1Q75iJYI9TPXIXYhCoGExeS48Awf EFHGJva6Y+Mtkmkxry5XCiHtNxXYFAt8QlsecuuR5yW03rkOACvzWX01yo3DrJanMUfB Z+1Oal1JAlPnWj74CldGqjLw8fS6eVwa8qm9kEIFLx8gWdNXSmtYpHstr/VaRp4M9XGt 4tt8JqBVv/V26Pc1mhH6ftiU7LgVgDoqvZNfqAb/3jlo2uy3qWrIoSV7jq63XnOIErzu THyA== 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=OdvkNjjprbeGdLs0buW5CGkflbG4E5IbgURzMRrADYk=; b=CSwIGmRguZshLKCGq5ihA+e8jz3+z3Kk09CLqggW4/nkDFoSmBDm4nhZSmnfUCcsaW v1oqGJXVhbS0JPZJjMdrHZ5tRdkKC+yBnDcMzVIgwS7Yuk/mca1K/8iHaq4Ag5Zug/5I cqlO7mKDs7+MW4VaXniVAWtR/cAodyGzjejWEpCpO2XESBVdZq0WTb2Ma+/cLaLK4DQS BT/FbeD0LD2eHO4n6u5nmtUGx9x85H2h/2MMZSVzr1vnh47gE0Cq197aCRks4fM9Gk6S U/DD6eLxUnTjr41h72GWP8qkTNXug7yqCN/F83pnV5nOR/hpgtPqVbxyumb6ttbdR3pg CFZg== 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 ze15si1335302ejb.253.2021.06.23.18.42.00; Wed, 23 Jun 2021 18:42:23 -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 S230056AbhFXBjp (ORCPT + 99 others); Wed, 23 Jun 2021 21:39:45 -0400 Received: from mx21.baidu.com ([220.181.3.85]:45704 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230048AbhFXBjm (ORCPT ); Wed, 23 Jun 2021 21:39:42 -0400 Received: from BC-Mail-Ex20.internal.baidu.com (unknown [172.31.51.14]) by Forcepoint Email with ESMTPS id CB453B40AFA467E5A9B4; Thu, 24 Jun 2021 09:37:19 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex20.internal.baidu.com (172.31.51.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.4; Thu, 24 Jun 2021 09:37:19 +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; Thu, 24 Jun 2021 09:37:19 +0800 From: Cai Huoqing To: , , , CC: , , , Cai Huoqing Subject: [PATCH v1] drm/nouveau: remove unused varialble "struct device *dev" Date: Thu, 24 Jun 2021 09:37:09 +0800 Message-ID: <20210624013709.436-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-Ex12.internal.baidu.com (172.31.51.52) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix the warning- variable 'dev' set but not used 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 984721bf3ab4..cb3ff4ae203e 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.17.1