diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-11 20:41:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-18 13:47:25 +0200 |
commit | d7ef4857d947a0c9ba26bfe02bac1629bda9f9a0 (patch) | |
tree | a5f64247831cb9d6345f7dab8f500ca98ad072e7 /drivers/misc/genwqe/card_base.c | |
parent | mic: no need to check return value of debugfs_create functions (diff) | |
download | linux-d7ef4857d947a0c9ba26bfe02bac1629bda9f9a0.tar.xz linux-d7ef4857d947a0c9ba26bfe02bac1629bda9f9a0.zip |
genwq: 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: Frank Haverkamp <haver@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/genwqe/card_base.c')
-rw-r--r-- | drivers/misc/genwqe/card_base.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c index d137d0fab9bf..f9f329651037 100644 --- a/drivers/misc/genwqe/card_base.c +++ b/drivers/misc/genwqe/card_base.c @@ -1377,10 +1377,6 @@ static int __init genwqe_init_module(void) class_genwqe->devnode = genwqe_devnode; debugfs_genwqe = debugfs_create_dir(GENWQE_DEVNAME, NULL); - if (!debugfs_genwqe) { - rc = -ENOMEM; - goto err_out; - } rc = pci_register_driver(&genwqe_driver); if (rc != 0) { @@ -1392,7 +1388,6 @@ static int __init genwqe_init_module(void) err_out0: debugfs_remove(debugfs_genwqe); - err_out: class_destroy(class_genwqe); return rc; } |