Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2311159pxu; Mon, 7 Dec 2020 03:21:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNxjDvjhNHT1o41MAXockPOFAS6yg8L7T/POttW1miaR9MAlVC6eJ5qIH77mDnQo+RB8Wx X-Received: by 2002:a17:906:6693:: with SMTP id z19mr17979264ejo.376.1607340077535; Mon, 07 Dec 2020 03:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607340077; cv=none; d=google.com; s=arc-20160816; b=jDe9ihvaM9jhxCdqXBzvQqD5QlZswK28D+b6qrPTFdk6L/rsrrqBbKLPJ/lUlEcc/7 /QV4G1Y+kV9teEbphyxKSbVqVYygbX3sHfGN9d7/P4acOZwNI5nMr7OeFBDQAyL0bEfU oIy4QWEdzm2Qpgomnn+XsEs1INi3g1ei3YHxkK6rcQbPItJo5/thGVIxYXQmy7tJ42nX 4+7KTnGhmS0ulHorlmMukQPtvbo3C0BaDYqk3yQQweIsmkBC3t7xDR2AQ6BNAEGmxdzl dm45OwUbRyrXFooaCpkG12mI4E3451XI5lYF0djMhFnpZUu/CbWNdND1lqtAic/bNArR k0pw== 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=sJ/mwFON+PMV5TFSaxFH2QCFIouPdlK02jQvjHbuT/0=; b=TFMaCNER7pnDdsiaDlAEDL7JjuI+YPobtrWgGh3aORBSNoV0VHt/0qDNTzQGUZ21l/ Loxdu2SD3Roo4rjs+SxzDy83IyvJE0rxxrsUGXvNaEu0F6Tvg1Xgz3Y/LadCxnLzuHPp 40Rz6sRDOEbVArZXlwdmdaoa+1bwHlxswkFa8qEMG8SUf/4g2qaoVREVZtymMzwRTNEU XlzEUoYujhdEXHlWRQnzfHA0e8pSWCbNW6x4tJO7rDiey9f05hDL6kKaumdz8W0tWxL4 dpdk4xD+185LSlx8yRFFnzSf//aIl0pYDPkNxIu6gQoJfVOGhcempIMBibn47eoo7a+j Tqiw== 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 c17si6472065ejr.574.2020.12.07.03.20.54; Mon, 07 Dec 2020 03:21:17 -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 S1726716AbgLGLQw (ORCPT + 99 others); Mon, 7 Dec 2020 06:16:52 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9110 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbgLGLQv (ORCPT ); Mon, 7 Dec 2020 06:16:51 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CqLMP2QLXzM1qQ; Mon, 7 Dec 2020 19:15:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 19:16:04 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon v2 2/2] drm/hisilicon: Delete unused local parameters Date: Mon, 7 Dec 2020 19:16:18 +0800 Message-ID: <1607339778-20460-3-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607339778-20460-1-git-send-email-tiantao6@hisilicon.com> References: <1607339778-20460-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 Reviewed-by: Thomas Zimmermann --- 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 7f01213..7e91ef1 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -250,12 +250,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