Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3184084pxk; Mon, 21 Sep 2020 07:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1dRHtqzzb0pvk1sibvus6HI5GuONj3k2NjAtE2VxTW1iV6qmu66uUESeXqmd9D/selsqy X-Received: by 2002:a17:906:f1d5:: with SMTP id gx21mr47408275ejb.165.1600698018679; Mon, 21 Sep 2020 07:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600698018; cv=none; d=google.com; s=arc-20160816; b=ahIwJ4//w+QEEhMN7OXNOGvmqqYAibSk3/moFzdkuLaQQw3/xkr7xVwReVNJySI2i2 7sQEf51SnBP3AqPn1+EsHxAZIwSLc/KDI8HJaBng5L68XvkqqsVXMVEccxveYZeNyTBP TVlijUD/zHDreGV8YUPl0QvU0mXhKSVZqA4BxbFvjrhX2WidLk7woPC0CqD7UP3GYv9l Gw8L3aTP4A88TFNeRa0aBadqfcnsDKGjIAFZKE5pFvDYo0UfgygZHQwe71QnTZIVWmHu 7ITrg1bFhg9sx27GxmPbFnFcnGcqDKcF6UUuz+ora5/x4SYG0HmL+6sP8QRjhkcdwUcJ RfrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=79xNs0fpdpnIL0yxawNIpEbwn6F0YJmPmPraMwH/VPI=; b=MQ0tFIFor2JG1NgQHeAPbTDBGjDSQKhPhf4I7QgHgrmb38Qg38kzZWMqdvOqu0MD2f UoUiIBco9AvSOZ3OjUyljKKbrIka2G2kRXBiqJfu7i9+Bed2WcAy6esc+PeZNBbKZxPH HFXigBYDc83RVMFSkQIEJk6CiiYjyfsZMEdUACHy2IF2LeRT+qlZPGbtC5WJ9q6tEp1H Doa6NgiB9YkoZLfpRn5uF9mErYzXHTqe1Q5iST7BDarIxUpbp9j2AjK4aZ2aJJJbBDCP nxj1WsnCXr5rxsMVjiRzDaO7s9Goxa69flci7Y//AboqVELOOSHGC9nrnT7U0CiVLPi0 t26A== 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 f25si8120114ejb.519.2020.09.21.07.19.55; Mon, 21 Sep 2020 07:20:18 -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 S1727019AbgIUOR3 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Sep 2020 10:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgIUOR2 (ORCPT ); Mon, 21 Sep 2020 10:17:28 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679BDC061755 for ; Mon, 21 Sep 2020 07:17:28 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKMd5-0000fA-4c; Mon, 21 Sep 2020 16:17:19 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1kKMcu-0001GY-Vp; Mon, 21 Sep 2020 16:17:08 +0200 Message-ID: <339d90457a08694b24df09afa62cfa0dd185f76b.camel@pengutronix.de> Subject: Re: [PATCH -next] drm/panfrost: simplify the return expression of cz_ih_hw_init() From: Philipp Zabel To: Qinglang Miao , Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Mon, 21 Sep 2020 16:17:08 +0200 In-Reply-To: <20200921131019.91558-1-miaoqinglang@huawei.com> References: <20200921131019.91558-1-miaoqinglang@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-09-21 at 21:10 +0800, Qinglang Miao wrote: > 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) Reviewed-by: Philipp Zabel regards Philipp