diff options
author | Dave Airlie <airlied@linux.ie> | 2007-03-19 09:12:08 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-03-19 09:12:08 +1100 |
commit | 46fac1708242756d280128888bda7218fb224603 (patch) | |
tree | e93d7af672e710b21fea14068da5f82e46bf0b55 /linux-core | |
parent | 26aba875e1094dcb3ba88ac4c41e943ef46df2c8 (diff) |
fixup return values in drm ioctl
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 3dcc4bfb..a9246360 100644 --- a/linux-core/drm_ioctl.c +++ b/linux-core/drm_ioctl.c @@ -343,7 +343,7 @@ int drm_setversion(DRM_IOCTL_ARGS) if (sv.drm_di_major != -1) { if (sv.drm_di_major != DRM_IF_MAJOR || sv.drm_di_minor < 0 || sv.drm_di_minor > DRM_IF_MINOR) - return EINVAL; + return -EINVAL; if_version = DRM_IF_VERSION(sv.drm_di_major, sv.drm_di_minor); dev->if_version = max(if_version, dev->if_version); if (sv.drm_di_minor >= 1) { @@ -357,7 +357,7 @@ int drm_setversion(DRM_IOCTL_ARGS) if (sv.drm_dd_major != -1) { if (sv.drm_dd_major != dev->driver->major || sv.drm_dd_minor < 0 || sv.drm_dd_minor > dev->driver->minor) - return EINVAL; + return -EINVAL; if (dev->driver->set_version) dev->driver->set_version(dev, &sv); |