mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
staging: unisys: visornic: check for error instead of success
Changes the conditional logic to check for an error code instead of a success code. Signed-off-by: David Binder <david.binder@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ab2c3d7545
commit
186896fdf0
@@ -2091,8 +2091,10 @@ static int visornic_init(void)
|
||||
goto cleanup_debugfs;
|
||||
|
||||
err = visorbus_register_visor_driver(&visornic_driver);
|
||||
if (!err)
|
||||
return 0;
|
||||
if (err)
|
||||
goto cleanup_debugfs;
|
||||
|
||||
return 0;
|
||||
|
||||
cleanup_debugfs:
|
||||
debugfs_remove_recursive(visornic_debugfs_dir);
|
||||
|
||||
Reference in New Issue
Block a user