Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2042888pxu; Sun, 6 Dec 2020 16:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSmKeW4zANp42cnsztW3a6IbhBe9pJrO6/3Jivkr0JC6Pye3VMMxF4eP8js+BTgIuram8q X-Received: by 2002:a17:906:94c5:: with SMTP id d5mr16394523ejy.427.1607302496586; Sun, 06 Dec 2020 16:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607302496; cv=none; d=google.com; s=arc-20160816; b=QBELQhgxtVhfvqfdNwXxfsCNcea33HKNnkmBjp9C6ttN5YsHweNrrzoLNBkwFTet+o EuGsyuF5QH/dmk3xVJTqNeCQX6Y0gP45cfzvK93Kkq5ExPZoGfYBOol2GjAIGEjMa2b4 CYFx7IzHoKUwG1nQFGWUNfGBlX13bEyQxVuradjcUakZPM9r7wEfcXx067VDlL6AHcXr 9gD+5W86hldpM+jFto0yuU5pr1dYCCBj8jv7SAsl+25SyDji51oYtQsA09w/NlM/USLl KgChMHFGwWF3W3/USZMggRKm+QKbpyHE8vqelMhNSXpL0gioUZcbl4lJF+ZRXKEomDOd 1X5Q== 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:to:from; bh=2A2/sdybrHWB9fuZQ/43K3/0/T8VLULktpKXOSJeggo=; b=U+Igc+hNxS+mzbArJ6fwh1xvziRv9160VsGgYFGdbY10EympPe3mRIhXf7YqVQ6SEi 7DoiwT685vKCzPb4cAvROPhc+ytlJSKFzsVunwYP+Y3xxOTbuMegrPL9JPmVqEwggeh5 CIuCMUqMb9gAm68jMJ7TtiEaIZ+EUzxjM60JMQnW6lS4TfEdtsdHjIRtis3vx+WXRq2F g3aAFX8zMIOifxCpesT2G/GafJ1y917ZCKjr/SWfm+NoTLLMAIsfBrGk1gxD1LIf/wu5 UYWXJPVxs0rmr7vZLzeetzYy7tDYXqLr7gHSvhiP0gFlZoR3/AXU4lW+zt8EhtmnoHXg E3Lg== 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 df21si1420183edb.207.2020.12.06.16.54.00; Sun, 06 Dec 2020 16:54:56 -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 S1728520AbgLGAuB (ORCPT + 99 others); Sun, 6 Dec 2020 19:50:01 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8950 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgLGAuB (ORCPT ); Sun, 6 Dec 2020 19:50:01 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Cq4SS1By1zhm70; Mon, 7 Dec 2020 08:48:56 +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:17 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon 0/2] Code refactoring Date: Mon, 7 Dec 2020 08:49:30 +0800 Message-ID: <1607302172-60123-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 patch #1 is used drmm_mode_config_init() to do code refactoring. patch #2 is deleted unused variable ‘priv’ to avoid warning. Tian Tao (2): drm/hisilicon: Use managed mode-config init drm/hisilicon: Delete unused local parameters drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) -- 2.7.4