Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6194143imu; Wed, 30 Jan 2019 10:21:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7y07prIDWlGobk5FfQOxFlvkErlMgt+onOCM3pzva8iHtWd4TROlHeTRimOUZozlmxYaAR X-Received: by 2002:a63:4b60:: with SMTP id k32mr28279402pgl.186.1548872507608; Wed, 30 Jan 2019 10:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548872507; cv=none; d=google.com; s=arc-20160816; b=el5MlLoEStS/uu/Yx1VGVe281xOTFi35ZQuypX1Xt0An05Rz9h8Gpph1yL3pLqOpOl 0F8jAtXam4egLYyqtkXxVb5vleUWuE7/f3HWyT59UWfUVbVF66mR+wFtLdt9yPzVOs4v fC4HlfQsZuRtNXKz5LoFgIn4U5fWJBkxv2MJxhJDZpgOSO828Htm1mMKwlnZ2r7ETqIl 0+DHuzdoxPVRbS+LZBbDVCBk5IaOHPAhcbUBhKncHEG42cvMKtbnhh0zBfR5OgmXUK9W /9gDR65ksr+e/QGxRuWy3i0BlNvORLjrsgvZ8uG5MzFCWMiu5bU46gMz7DyBR0861XmE PqAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nxOrlhmiOjfe5/E2Vj9TAu6ZzNDQH/1oVT6C17Gq8HY=; b=Xeoxukwutz4yJ1b/XDzoi2IegxoTb9W4ytaIccTJSmH2Po7VZvB24pr8AZT876gCFb hsJEJWZKFapbKX3kksIykPScTm7mTpoth/nK4iHR06yzECRWHgQl7yoToF2jFLak8XOb +mEBd1PXWC+M93vDhN6CZEeUZ7nBzA43i/gsZHAJoOHjVmWBsLe6QBzI/L3cN+o2rz5b sMtWvQfbQ8Hlwzf5QCO2zWrvaxByPITJmPKQaP5KDmJ3cu8P6JZV/zwx87fe3Tt24iOv jTIAK+StYUQFTDozJRTE9yCdnVCo5bSIAZxfNsqBwOgTioYDQ8bHpmojFfPltgBGR17l xq0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si1973239pgd.88.2019.01.30.10.21.31; Wed, 30 Jan 2019 10:21:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732987AbfA3SVH (ORCPT + 99 others); Wed, 30 Jan 2019 13:21:07 -0500 Received: from foss.arm.com ([217.140.101.70]:59612 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732949AbfA3SVH (ORCPT ); Wed, 30 Jan 2019 13:21:07 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D634580D; Wed, 30 Jan 2019 10:21:06 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5CCF63F557; Wed, 30 Jan 2019 10:21:05 -0800 (PST) Date: Wed, 30 Jan 2019 18:21:02 +0000 From: Will Deacon To: Greg Kroah-Hartman Cc: Catalin Marinas , Kevin Hilman , Russell King , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marc Zyngier , Peng Donglin Subject: Re: [PATCH 1/4] arm64: dump: no need to check return value of debugfs_create functions Message-ID: <20190130182102.GK18558@fuggles.cambridge.arm.com> References: <20190122144114.9816-1-gregkh@linuxfoundation.org> <20190122144114.9816-2-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190122144114.9816-2-gregkh@linuxfoundation.org> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, Jan 22, 2019 at 03:41:11PM +0100, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc Zyngier > Cc: Peng Donglin > Cc: > Signed-off-by: Greg Kroah-Hartman > --- > arch/arm64/include/asm/ptdump.h | 9 +++------ > arch/arm64/mm/dump.c | 4 ++-- > arch/arm64/mm/ptdump_debugfs.c | 7 ++----- > 3 files changed, 7 insertions(+), 13 deletions(-) Are you taking this via your tree, or would you like us to queue it in arm64? Will