mtd: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 08:51:11 +0000 (09:51 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 14 Nov 2019 09:57:38 +0000 (10:57 +0100)
commitc2d73ba892eac0275b0d2bd7fae8dd4591a05da9
tree6d14081046b69e8a463dc6d0b04ba481f5e42479
parent267c1d772380cfbced547abb17f1d6827904f909
mtd: 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.

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: linux-mtd@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/mtdcore.c
drivers/mtd/mtdswap.c
drivers/mtd/ubi/debug.c