Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1046928pxb; Thu, 19 Nov 2020 22:53:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDtVSwm7RqDX639YFRiO5kA/bEYY3b9Aa6GIYAgy2KOpEfNBnoZSNQ41bI9N17bP/Ru0jr X-Received: by 2002:a05:6402:1245:: with SMTP id l5mr33975565edw.68.1605855198515; Thu, 19 Nov 2020 22:53:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605855198; cv=none; d=google.com; s=arc-20160816; b=0XkTxlyydpq+gExUh2AbaucLa0J71eyqo0Ht2Kaec2DtgZBwIrQC4G9tjsU4WlUWQv DLvdCTc6bBoWnyRoRak04TyH+Z/tsItI7rQIzn8WBjM1l31hf07n0bKmPzY+LUNhH4Un KwVngmZDX8MEbHlD3ElpVtaSCA0XVJM+V6jMVZjF0otAvaUGxlxWXfLRvfVjxf7pwH2F WFlYDWA9uacic7tBybDN+fbHs6cTCIAygfwyVjdsfGrX3umIes8TyCe2o5eGhACaboh8 T8JIG1lKaEdZgkpCFKxpd5v7YT4yYgUb5eNe4Hy95T9jk7E6WWfF0L9KkP/1DORtcF44 0cuA== 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=fnyRjxwrKd1nvCsnDIUdcmnpk1OBsUfRdWGp/2bo1C4=; b=vQNGeRbf9Bl1qAWAuJKxIiSKmCCJFsY9H/pXlht7YBdaKky6CjalK+znejxWz1IgiF H4HgyKY1V7DtZ0ULgRfCdqpEkFzXupVG2kQjJ0lEJVlP6KsTEujRS1440OGL6OJVZrna rPWZ+uDUb02CZ7200iIZZICk8hWy0vuGPuoKBKzQn6u0moQ8uJz9i8jq8x6A9KkIgixv qBFQGtuyNQ4HIlGL80/IFeZQ3ihk0JHhcQjtxZeoRABX665ykV0fb9Q3/aNGXkouaGvE jbGsWs5TEiiAUQkiUahXZK1tWouavWEKG8Du24me8eXZ5OzF/anZW8XsVu50rADZVAzZ Ur/Q== 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 uz26si1196510ejb.559.2020.11.19.22.52.55; Thu, 19 Nov 2020 22:53:18 -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 S1727164AbgKTGte (ORCPT + 99 others); Fri, 20 Nov 2020 01:49:34 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7958 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbgKTGtd (ORCPT ); Fri, 20 Nov 2020 01:49:33 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CcnG72s9HzhbVR; Fri, 20 Nov 2020 14:49:19 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 20 Nov 2020 14:49:29 +0800 From: Tian Tao To: , , , , CC: , , , , Subject: [PATCH] drm/ttm: remove unused varibles Date: Fri, 20 Nov 2020 14:49:53 +0800 Message-ID: <1605854993-50218-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 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