[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171207220330.33106938@cakuba.netronome.com>
Date: Thu, 7 Dec 2017 22:03:30 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>
Cc: "David S . Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2] netdevsim: remove return value check of
debugfs_create_dir
On Fri, 8 Dec 2017 14:32:18 +0900, Prashant Bhole wrote:
> Reason:
> Discussion started about adding error check on return value where
> it was not handled. Also handling the error using IS_ERR_OR_NULL
> instead of IS_ERR(), because debugfs_create_dir() doesn't return
> error. It returns NULL or a valid pointer when DebugFS is enabled.
>
> Finally it was decided to remove error handling altogether to
> make it consistent and removal of this check isn't fatal to the driver.
>
> Signed-off-by: Prashant Bhole <bhole_prashant_q7@....ntt.co.jp>
Reviewed-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
Thank you!
Powered by blists - more mailing lists