summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-03-19 09:20:04 +1100
committerDave Airlie <airlied@linux.ie>2007-03-19 09:20:04 +1100
commit1e77e52755c9bb94c9230778845e6701b4d82b3a (patch)
tree255738a798cdc4dd0fce8ae8bed6d83681698843
parent46fac1708242756d280128888bda7218fb224603 (diff)
more return values fixup
-rw-r--r--linux-core/drm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c
index a9246360..f790a4b3 100644
--- a/linux-core/drm_ioctl.c
+++ b/linux-core/drm_ioctl.c
@@ -138,12 +138,12 @@ static int drm_set_busid(drm_device_t * dev)
{
int len;
if (dev->unique != NULL)
- return EBUSY;
+ return -EBUSY;
dev->unique_len = 40;
dev->unique = drm_alloc(dev->unique_len + 1, DRM_MEM_DRIVER);
if (dev->unique == NULL)
- return ENOMEM;
+ return -ENOMEM;
len = snprintf(dev->unique, dev->unique_len, "pci:%04x:%02x:%02x.%d",
drm_get_pci_domain(dev),
@@ -156,7 +156,7 @@ static int drm_set_busid(drm_device_t * dev)
dev->devname = drm_alloc(strlen(dev->driver->pci_driver.name) + dev->unique_len + 2,
DRM_MEM_DRIVER);
if (dev->devname == NULL)
- return ENOMEM;
+ return -ENOMEM;
sprintf(dev->devname, "%s@%s", dev->driver->pci_driver.name, dev->unique);