diff options
author | Dave Airlie <airlied@linux.ie> | 2004-07-22 12:07:13 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-07-22 12:07:13 +0000 |
commit | 6ed7e36f4c6933cc29b0f5c8cb810490dd93a8fc (patch) | |
tree | b5d99314d26b5a8466006f193a256ed652c5c32b /linux-core | |
parent | ea2155a2e1c31f634d80701a00fb19af6d3402c3 (diff) |
another logic error returns 0 or greater for success
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index b278bcbd..fb6c2f81 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -206,7 +206,7 @@ int DRM(stub_register)(const char *name, struct file_operations *fops, if (DRM(stub_info).info_register) { ret2 = DRM(stub_info).info_register(name, fops, dev); - if (ret2) { + if (ret2 < 0) { if (!i) { inter_module_unregister("drm"); unregister_chrdev(DRM_MAJOR, "drm"); |