diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-08-23 13:31:45 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-08-23 13:31:45 +0200 |
commit | 8fa43d4b2ff4137bab743bfaf6282aa327f16830 (patch) | |
tree | 50d16aa41bf6262afc35d7fb7aeb3ab771b7f6f8 /linux-core/drm_hashtab.c | |
parent | e201511a0fbeb177a9ecd7f77d177fc88c1616fb (diff) | |
parent | 459b234d79daaa8a003da9ea48775a5587d5ba2a (diff) |
Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into drm-ttm-0-2-branch
Diffstat (limited to 'linux-core/drm_hashtab.c')
-rw-r--r-- | linux-core/drm_hashtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_hashtab.c b/linux-core/drm_hashtab.c index 40599227..63ee5f91 100644 --- a/linux-core/drm_hashtab.c +++ b/linux-core/drm_hashtab.c @@ -115,7 +115,7 @@ int drm_ht_insert_item(drm_open_hash_t *ht, drm_hash_item_t *item) hlist_for_each(list, h_list) { entry = hlist_entry(list, drm_hash_item_t, head); if (entry->key == key) - return -1; + return -EINVAL; if (entry->key > key) break; parent = list; @@ -163,7 +163,7 @@ int drm_ht_find_item(drm_open_hash_t *ht, unsigned long key, list = drm_ht_find_key(ht, key); if (!list) - return -1; + return -EINVAL; *item = hlist_entry(list, drm_hash_item_t, head); return 0; @@ -179,7 +179,7 @@ int drm_ht_remove_key(drm_open_hash_t *ht, unsigned long key) ht->fill--; return 0; } - return -1; + return -EINVAL; } int drm_ht_remove_item(drm_open_hash_t *ht, drm_hash_item_t *item) |