[PATCH] ubifs: no need to check return value of debugfs_create functions

Richard Weinberger richard at nod.at
Wed Jun 12 11:53:57 PDT 2019


Greg,

----- Ursprüngliche Mail -----
> Von: "Greg Kroah-Hartman" <gregkh at linuxfoundation.org>
> An: "richard" <richard at nod.at>, "Artem Bityutskiy" <dedekind1 at gmail.com>, "Adrian Hunter" <adrian.hunter at intel.com>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>
> Gesendet: Mittwoch, 12. Juni 2019 17:21:20
> Betreff: [PATCH] ubifs: no need to check return value of debugfs_create functions

> 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.

why is it bad if we handle errors from debugfs?
At least a nice log message a la "sorry, no ubifs debuging for you"
would be nice to have.

Thanks,
//richard



More information about the linux-mtd mailing list