Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1977495pxb; Mon, 8 Mar 2021 10:46:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfWhor1Dl47p+ArC5W5jt4JSLe3Ak3H/CNhNSHuzzx85Pa6/Y0s55X74EMj+uyDGV7EzMi X-Received: by 2002:aa7:c3cd:: with SMTP id l13mr9252edr.52.1615229169706; Mon, 08 Mar 2021 10:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615229169; cv=none; d=google.com; s=arc-20160816; b=WlXHx+j3WKb+78joMcMikF4Gy2e7rlWrUWwffEKriyUK1mSvVYGdaCrt0AEPjazn2l 7JASa0UHr9ktZhW0gS6CGPAZDQR8FuqnndHoFFAty7JovQgU7HcxOxfwO3wpKMqYFqP7 DtdyTt4vqWQwibW8s3jGjZiiXz2OApLiW2uJMudReyZ6hiH93fWn1AV8EdGSIcQfDAY6 BvZkvk9F1B/8H2qaM2gT12wmRnWI29SFQtBoy1cwn+jdzMxmX/NfzppZOCPXneBYSPF6 W4ORp/XAsUEfeMVW9Vl87nTj4jeTT6zp6IKDZdCkwOmQSsBjfiMVbI7fFe9O8aYSNo3K ZtGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=04A7qljy+K+sfiSB0qKOdBkqP1yaL7Hp5xr+2U1W7O8=; b=uFrDhLhyUhdCmSDEp4mQQ1vj9xYDqgr5UsxRlhWeBsg/k7Rnj6oEtoGOuUqcYt5R3x e0hWhigiYG61B6bqo6cyCBBB3ex7A37yhy2jfQEO9lBjMTEzt5DbQgDVckLzqwAQENnq IvML5U7VbZ4lXALFMqYZ0+9zgTkrSbHX6W0f91YdKMEFzDsl8fR6x4yoj5ypDbvUHacA rsu1R+dBpmTpxRb2CYYz7zX+VNbxbp202oV4Bi5jrxLSWf2hN+SPyCO8RZywc6fcoHOq nSQXJmR2UGNURAJM6uIrSeOm/KOEChqayKqii28vo4J2Wzm3lzxPBYurUR1UNOycfGvq AL1g== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si7755464edm.44.2021.03.08.10.45.46; Mon, 08 Mar 2021 10:46:09 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbhCHSoB (ORCPT + 99 others); Mon, 8 Mar 2021 13:44:01 -0500 Received: from mail-il1-f171.google.com ([209.85.166.171]:42957 "EHLO mail-il1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbhCHSnx (ORCPT ); Mon, 8 Mar 2021 13:43:53 -0500 Received: by mail-il1-f171.google.com with SMTP id p10so9767459ils.9; Mon, 08 Mar 2021 10:43:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=04A7qljy+K+sfiSB0qKOdBkqP1yaL7Hp5xr+2U1W7O8=; b=nPuNWsSyYEMYYQl1+zTslA0FaNTRNGYe9eN9P/x69GNAjJNA1nhLRzcWKUXOQQR+lX EgNMi/MQkmcL2kUb/KwJ6uZDR0X0cd9s4XZ0zdQuvsIG+MwmSe/GLrX/mh8I6vp6/iLX T3MnW0P5PPesBsM2HLaXoe37qMAEDDLWxkZwAnPBHpi5LVwlyYLdGBQGUqLiv+Tq/3rt NxiTh4yZhuZwWcnSNrPpXDA6wrLRf4VA0u8AoTFLT0zDqZlCn4AVyi2GcD4KsFfCE2ey lZyNMsMSB5tUcSNxI9swcvSOEZRiOtleYBnb5YI1ov+tRDjDYsdlfikZ/miGfjbYZTQ6 rt0Q== X-Gm-Message-State: AOAM533cpeEDUKZo8J9ohvJQzS4MIobF2Rz9Xai282ozhSx8iVcf+Gnj FLp06ZU4kJopq0sk8u9UbQ== X-Received: by 2002:a92:194a:: with SMTP id e10mr22028649ilm.213.1615229033152; Mon, 08 Mar 2021 10:43:53 -0800 (PST) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id 74sm6379073iob.43.2021.03.08.10.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:43:52 -0800 (PST) Received: (nullmailer pid 2767878 invoked by uid 1000); Mon, 08 Mar 2021 18:43:50 -0000 Date: Mon, 8 Mar 2021 11:43:50 -0700 From: Rob Herring To: Yang Li Cc: linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, frowand.list@gmail.com Subject: Re: [PATCH] of: property: Remove unneeded return variable Message-ID: <20210308184350.GA2767821@robh.at.kernel.org> References: <1614676598-105267-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614676598-105267-1-git-send-email-yang.lee@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 02 Mar 2021 17:16:38 +0800, Yang Li wrote: > This patch removes unneeded return variables, using only > '0' instead. > It fixes the following warning detected by coccinelle: > ./drivers/of/property.c:1371:5-8: Unneeded variable: "ret". Return "0" > on line 1388 > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/of/property.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Applied, thanks!