提交 186896fd 编写于 作者: D David Binder 提交者: 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: NDavid Binder <david.binder@unisys.com>
Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ab2c3d75
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册