Commit 186896fd authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

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: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ab2c3d75
...@@ -2091,7 +2091,9 @@ static int visornic_init(void) ...@@ -2091,7 +2091,9 @@ static int visornic_init(void)
goto cleanup_debugfs; goto cleanup_debugfs;
err = visorbus_register_visor_driver(&visornic_driver); err = visorbus_register_visor_driver(&visornic_driver);
if (!err) if (err)
goto cleanup_debugfs;
return 0; return 0;
cleanup_debugfs: cleanup_debugfs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment