another logic error returns 0 or greater for success

main
Dave Airlie 2004-07-22 12:07:13 +00:00
parent ea2155a2e1
commit 6ed7e36f4c
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ int DRM(stub_register)(const char *name, struct file_operations *fops,
if (DRM(stub_info).info_register) { if (DRM(stub_info).info_register) {
ret2 = DRM(stub_info).info_register(name, fops, dev); ret2 = DRM(stub_info).info_register(name, fops, dev);
if (ret2) { if (ret2 < 0) {
if (!i) { if (!i) {
inter_module_unregister("drm"); inter_module_unregister("drm");
unregister_chrdev(DRM_MAJOR, "drm"); unregister_chrdev(DRM_MAJOR, "drm");

View File

@ -206,7 +206,7 @@ int DRM(stub_register)(const char *name, struct file_operations *fops,
if (DRM(stub_info).info_register) { if (DRM(stub_info).info_register) {
ret2 = DRM(stub_info).info_register(name, fops, dev); ret2 = DRM(stub_info).info_register(name, fops, dev);
if (ret2) { if (ret2 < 0) {
if (!i) { if (!i) {
inter_module_unregister("drm"); inter_module_unregister("drm");
unregister_chrdev(DRM_MAJOR, "drm"); unregister_chrdev(DRM_MAJOR, "drm");