Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2043890pxu; Sun, 6 Dec 2020 16:57:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz+hfka8IC5KQw3KW7yYknDwasx9ShAuHaM32HEHnGkf5Qe3eGYA+AJ4LlENiAFuE9tvq7 X-Received: by 2002:a17:906:da08:: with SMTP id fi8mr16822116ejb.517.1607302635034; Sun, 06 Dec 2020 16:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607302635; cv=none; d=google.com; s=arc-20160816; b=RswDGTair7c1iiakMO6tuWdwp7vWNSARdsbSxZ8tdXZtv4Zl3heBgp0D6g12ipjVJ3 Y4Ca9RG+qrbZZNyYxTUvuJ5S4KTQNjhfkyRQVjFUFZeOe4PqB4x3wfZpiHnlg01SfPYL 5JfPjiWA9TVHv7Z+iEW4JDNvKMxUkI/4Jrxb9TDTN9emCKvq4qvvrbSpl7j0bxUr8pTh OvJqetNufoIWhsH9ZH52Hf0K+Fwjp5PasWDUx8yuc9Kslaj7QtaZbQFVO2B0pSrMSeq8 w7F7Vg2EwNzCTZM0y6LEnDno/yPPGy9Wm81xRs+g5EOjKpBEMcbCyeV/hY5Q7G9Fgzmo 6aFQ== 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=mH4VScYtVvtzxxZGSq1ji6r0fWYbeCZ6eQYPn7OFOps=; b=V0ixPPas44URkUx9T4WiRYjpGBitGYQO4OWB59WOavo+pc+hOl7h32+ADqREvBO5EO Y4hoJjxFo389oLj5yLMiNPKNgQZQanjX9vF4Tj8FQKJOGbVMPNFECXhWR2qJWC4rElug PUZ+ygW5jr92O/qtvseWZAHYh92jhgseULxO8xvBy5UiilG7l3xfSVzxie9I2EnaNPHf J9ujjCttC2Cc5xS1v16WC8Bxl++K2roQ4EEUyNcsmKL0aOvQ6j1sL/EwkKneISvOruxi qfz6xuHWD/Xz6aQCu8dNGLbrfwMwkVKc/lhg+Nk1nyaggb+ggRu6hqCUfiXhLpANUxAf TlHQ== 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 rn2si5704304ejb.251.2020.12.06.16.56.51; Sun, 06 Dec 2020 16:57:15 -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 S1728609AbgLGAuI (ORCPT + 99 others); Sun, 6 Dec 2020 19:50:08 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9018 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728485AbgLGAuG (ORCPT ); Sun, 6 Dec 2020 19:50:06 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cq4SQ4hMrzhl2P; Mon, 7 Dec 2020 08:48:54 +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; Mon, 7 Dec 2020 08:49:18 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon 2/2] drm/hisilicon: Delete unused local parameters Date: Mon, 7 Dec 2020 08:49:32 +0800 Message-ID: <1607302172-60123-3-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607302172-60123-1-git-send-email-tiantao6@hisilicon.com> References: <1607302172-60123-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 delete unused variable ‘priv’ to avoid warning. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index d631f82..772f58e 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -251,12 +251,9 @@ static int hibmc_hw_init(struct hibmc_drm_private *priv) static int hibmc_unload(struct drm_device *dev) { - struct hibmc_drm_private *priv = to_hibmc_drm_private(dev); - drm_atomic_helper_shutdown(dev); - pci_disable_msi(dev->pdev); - dev->dev_private = NULL; + return 0; } -- 2.7.4