[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE4R7bCKMzfi0b4ZpDeFpaRpDJzZemU=kmKXO3C96yK=wgc_UA@mail.gmail.com>
Date: Tue, 18 Aug 2015 00:21:15 -0700
From: Scott Feldman <sfeldma@...il.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: Netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next v3] rocker: add debugfs support to dump internal tables
On Mon, Aug 17, 2015 at 11:48 PM, Jiri Pirko <jiri@...nulli.us> wrote:
> Tue, Aug 18, 2015 at 08:14:48AM CEST, sfeldma@...il.com wrote:
>>On Mon, Aug 17, 2015 at 10:55 PM, Jiri Pirko <jiri@...nulli.us> wrote:
>>> Tue, Aug 18, 2015 at 12:36:17AM CEST, sfeldma@...il.com wrote:
>>>>From: Scott Feldman <sfeldma@...il.com>
>>>
>>> <snip>
>>>
>>>>+ rocker->dbg_dir = debugfs_create_dir(dbg_dir_name, rocker_dbg_root);
>>>>+ if (!rocker->dbg_dir)
>>>
>>> You still check the retval here and
>>
>>It's OK. See include/linux/debugfs.h when CONFIG_DEBUG_FS=n.
>>debugfs_create_dir() returns ERR_PTR(-ENODEV), which is !NULL.
>
> Does not make sense to check it for NULL then. It is never NULL...
It can be NULL when CONFIG_DEBUG_FS=y.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists