nbd: Fix debugfs error handling
authorMarkus Pargmann <mpa@pengutronix.de>
Sat, 24 Oct 2015 19:15:34 +0000 (21:15 +0200)
committerMarkus Pargmann <mpa@pengutronix.de>
Wed, 3 Feb 2016 10:02:56 +0000 (11:02 +0100)
commit27ea43fe2a32f63bb6f442dafc2133232b8af4a6
tree145cf78515bd373bc9ccbd56772590890ef006cf
parent92e963f50fc74041b5e9e744c330dca48e04f08d
nbd: Fix debugfs error handling

Static checker complains about the implemented error handling. It is
indeed wrong. We don't care about the return values of created debugfs
files.

We only have to check the return values of created dirs for NULL
pointer. If we use a null pointer as parent directory for files, this
may lead to debugfs files in wrong places.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
drivers/block/nbd.c