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>
This commit is contained in:
@@ -1307,14 +1307,10 @@ int genwqe_device_create(struct genwqe_dev *cd)
|
||||
goto err_cdev;
|
||||
}
|
||||
|
||||
rc = genwqe_init_debugfs(cd);
|
||||
if (rc != 0)
|
||||
goto err_debugfs;
|
||||
genwqe_init_debugfs(cd);
|
||||
|
||||
return 0;
|
||||
|
||||
err_debugfs:
|
||||
device_destroy(cd->class_genwqe, cd->devnum_genwqe);
|
||||
err_cdev:
|
||||
cdev_del(&cd->cdev_genwqe);
|
||||
err_add:
|
||||
|
Reference in New Issue
Block a user