Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3168pxu; Thu, 3 Dec 2020 17:26:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkHQKDfg94+Tyr4DUXTao+RZSqrUtsGYm59UpfknS2/7r5RM+2CsSSvimC/6RGudb5IjR+ X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr5410507edr.63.1607045213535; Thu, 03 Dec 2020 17:26:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045213; cv=none; d=google.com; s=arc-20160816; b=SJXRxsmrPCkaq+3kGmTgvVfqgZLoA0gskEYnqZF+SF1ntbVLmZ69PKvk2WGSD+o7cf Y0B6RDrINSepOhAuCsMfBNTly10MXxane0cPNDAdDNtXn4LPgc7AqFCgbf4u6lm0lyuP ivoGScWzNlFt1wM3dv/SHShtKC9UGRAWsKytyk26NXqCWalnlkQ99Q78qmNRIyd/w2M8 l1BZ4jSk1dJT7bnOt6oBi10QghZZQ/nN5nogH5ehDBt3JmG+iDIJLlXITy4YDi06IQo5 UwdaIa56LlniIkQaxwaOFnmF5DxU5xPqk3sePMu5Nm0GydPUG9fsRx5XBK8bRSlZvDu0 3tHg== 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=KzVqomHakW9aU6CPt7p0PEymKv2Wz1uX5g/RjE6mpE8=; b=VVKzMvs/jACyEXNLz+RDFFR/IGiIDnlofy0MCU3Hh0l+rTn57Olt8ivQJgucUY8vqC MuqrlGwP2op+J+fUFCvJInIBcAWVTJhmkZT0fiRjLHPUVuL4sB1hrVIR1tdhrXnkxFNw AP+FELCbxdbfwtKeR+4FrWJAz4659reOTi+I+HmlR4tU4zA7DMQhzVIg2tqcajtPvp+X h7RCzWZUniwX9M+gOX8oi+WJffzjeqYDjtfnLGK3MDQe/wP5Wd0dkvpoOF7ePcsTC94I w+1lu483tuOt7dSD9PpJaWq6q04HNO+rch3C/g3IH5HpdaLPtDt9TbsGqFE595q4HQzD Wr+A== 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 b5si2061743edk.293.2020.12.03.17.26.31; Thu, 03 Dec 2020 17:26:53 -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 S1731988AbgLDBX7 (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:59 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8635 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730021AbgLDBX6 (ORCPT ); Thu, 3 Dec 2020 20:23:58 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFLq4YnWz15X9y; 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:07 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH 2/2] drm/hisilicon: Deletted unused local parameters Date: Fri, 4 Dec 2020 09:23:17 +0800 Message-ID: <1607044999-47666-12-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 deletted unused variable ‘priv’. 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 04fee18..8a04014 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -237,12 +237,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