Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp342061pxk; Thu, 1 Oct 2020 03:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSTUA6LokqRq2rmZ4+8y0vmGRY5HOpj8RCKo4J3Mq70ImQybGfguI6xjYQ5IiIEnqtGhBA X-Received: by 2002:aa7:da10:: with SMTP id r16mr7747373eds.333.1601549991010; Thu, 01 Oct 2020 03:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601549991; cv=none; d=google.com; s=arc-20160816; b=Y7MfbEKnB6IS17w+g1MW/IHSONSFJVrzT7UKGv68Agsgq9vMrMQ5A8/7EnxsotqE2M uz4yT6N/L7q+ONa9OfnT9Mjfie7mgKGjyulssmqN8byKi6qm7ffrzmIsLMhfAvjGLiVN NncbrOlI2DVdL0rUA4B0neduiEnexYP3f2DCTRGK7/aC4CynGX2F4Eh92gHHtNW2a8x9 eL4NH10JXi6twpDdflog1iM56HXkipcwwZ1GCUxcqpV9tJV5judq4Pw6kIV1bEJJxyfx CYrpx6iLLehjejzeMdhhRH3DQZMD546NssuOWK98LvkVW7ffvlHZmYopu+nBzLBIIkni 2hvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=03Avo5PMb2dX04+iJCQor9eNYPjHevmW9lUcaksBvcE=; b=PazI+Am2+QXZLf40Xys4rETZBE55VMFw78d7R9S5v5SIPM1AZwMWQ0DfVP7sqBTh/O lHpmNchfMzOE3pL3YQYeZOjI23Ii5t6yYnlNkLKbeuzTqvrLr5tGv1SAvMxOFT7qwUQU KCSvUz5TKlGapLUJdfRPS9Ac2KQGQ1d0q+7hTOUpRdU36LDT+v9zJKPaeQvrKssTjfbG 88hHvCMEDMXPyQ7LrjBdsDQHXcZAmE1yW1QyXJ3uUF57UBgw/v33QhMViNkmIOqBRt1Y XF7HFPtd4U3ogiD7aWB7zigYOsW8Tv2t3yVNX9s0PXN+tHCEvVJoATC01MQKKOoBkaiZ oXPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si2890097edm.1.2020.10.01.03.59.28; Thu, 01 Oct 2020 03:59:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732150AbgJAK6P (ORCPT + 99 others); Thu, 1 Oct 2020 06:58:15 -0400 Received: from foss.arm.com ([217.140.110.172]:59082 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732145AbgJAK6O (ORCPT ); Thu, 1 Oct 2020 06:58:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BCC5D30E; Thu, 1 Oct 2020 03:58:13 -0700 (PDT) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 93C733F70D; Thu, 1 Oct 2020 03:58:12 -0700 (PDT) Subject: Re: [PATCH -next] drm/panfrost: simplify the return expression of cz_ih_hw_init() To: Qinglang Miao , Rob Herring , Tomeu Vizoso , Alyssa Rosenzweig , David Airlie , Daniel Vetter , Philipp Zabel Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200921131019.91558-1-miaoqinglang@huawei.com> From: Steven Price Message-ID: Date: Thu, 1 Oct 2020 11:57:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200921131019.91558-1-miaoqinglang@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2020 14:10, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao Reviewed-by: Steven Price > --- > 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) >