Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3138902pxk; Mon, 21 Sep 2020 06:18:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdM7aMeXemb77ONElZxigT/zYD1YWhrNwD7VZASe+lmEDaB3DBLO6+UltGS/ZiQEK0rqft X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr52563318edp.153.1600694288856; Mon, 21 Sep 2020 06:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694288; cv=none; d=google.com; s=arc-20160816; b=AHiyIA/f7m4hi/Agg8YofpgxB6NAdpr9c97flQtX+slPOn8+EdIKK4/PPTLVP+vGg1 KLf3ht7bPbGj2Y8Elj230LV9R0zqTkuSvdNnfWK7LQnhOrlMP78fpZY2QS+jcgRwFG0G fmo0KTU8R5jTkxK7zkCOHPW4ePG46tcchPB8Wl22HUBnLfhzDKm26wCH8QS17DZAmM8J wu0tgGwLJvisbfMq+IwxwNMW5GIGjDOZw5VXeMpP4HpAmNNm9zwgXv4c22WW2ZD4Sv4J GrbuSCxhlywvEXwXjROULGLIDfOqzWM8L9LxvtVmXm5oiX6ro39TcqtQz89onxrpjr49 8Eag== 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=2ueRaWpiTdUokCqNjqyAj16BL+s+gjqWBUq+MmOQ9mg=; b=ikzQ5y583weHxCXp+FDhlLyX+lf3/4la5LCA/OTaDYoRMsoxtN8JmMF5LFzcn23GgQ nrgW+hzkC2FfjK/SM53UndtVTcbSeTPgdR1KItYl00giJSVUXWmnursjgVPTCLyqsbz4 ZSdJg/L+UwFm7oA8oPKngWPc3PF+madQtyCiKiYTYoEF7o5gpiy0fsN3O0UZ5mbLhftl UTQDvEvkNB4zHlfHR8Rdf+KlDwZAbtN/H5raoD9qMQFyTqDNVGwVjZFBsONzjZgQ9xp4 Y8pG4nw8LROzZl/elr+KPuFBBND6SMxpJlQlzXsvlpOrQ2AnNTdc5Lb4xrsaioD5/5Ax Bx6Q== 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 d17si8496498edp.500.2020.09.21.06.17.43; Mon, 21 Sep 2020 06:18:08 -0700 (PDT) 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 S1727725AbgIUNOE (ORCPT + 99 others); Mon, 21 Sep 2020 09:14:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13754 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727207AbgIUNKE (ORCPT ); Mon, 21 Sep 2020 09:10:04 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E7E95384D5219CC99EB4; Mon, 21 Sep 2020 21:10:01 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:09:55 +0800 From: Qinglang Miao To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , "Daniel Vetter" , Philipp Zabel CC: , , Qinglang Miao Subject: [PATCH -next] drm/panfrost: simplify the return expression of cz_ih_hw_init() Date: Mon, 21 Sep 2020 21:10:19 +0800 Message-ID: <20200921131019.91558-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/drm/panfrost/panfrost_device.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index e68967338..ea8d31863 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.c +++ b/drivers/gpu/drm/panfrost/panfrost_device.c @@ -18,19 +18,13 @@ static int panfrost_reset_init(struct panfrost_device *pfdev) { - int err; - pfdev->rstc = devm_reset_control_array_get(pfdev->dev, false, true); if (IS_ERR(pfdev->rstc)) { dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc)); return PTR_ERR(pfdev->rstc); } - err = reset_control_deassert(pfdev->rstc); - if (err) - return err; - - return 0; + return reset_control_deassert(pfdev->rstc); } static void panfrost_reset_fini(struct panfrost_device *pfdev) -- 2.23.0