[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190123213506.nfjqpbhbctmls2lf@linutronix.de>
Date: Wed, 23 Jan 2019 22:35:06 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Anders Roxell <anders.roxell@...aro.org>,
Arnd Bergmann <arnd@...db.de>, Michal Hocko <mhocko@...e.com>,
linux-mm@...ck.org
Subject: Re: [PATCH] backing-dev: no need to check return value of
debugfs_create functions
On 2019-01-22 16:21:07 [+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.
>
> And as the return value does not matter at all, no need to save the
> dentry in struct backing_dev_info, so delete it.
>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Cc: Anders Roxell <anders.roxell@...aro.org>
> Cc: Arnd Bergmann <arnd@...db.de>
> Cc: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
> Cc: Michal Hocko <mhocko@...e.com>
> Cc: linux-mm@...ck.org
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
with "[PATCH 2/2] debugfs: return error values, not NULL"
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Sebastian
Powered by blists - more mailing lists