Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37519
b: refs/heads/master
c: 47cc140
h: refs/heads/master
i:
  37517: ee86741
  37515: ad05287
  37511: 6b35b36
  37503: 7ec9a82
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Sep 21, 2006
1 parent 76ea3a9 commit 4c70666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b1a51b69c89028f18277e235533c160e7506ebb
refs/heads/master: 47cc140931cc03076014fdbfdd512d6dd9d74d34
6 changes: 3 additions & 3 deletions trunk/drivers/char/drm/drm_hashtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,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;
Expand Down Expand Up @@ -154,7 +154,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;
Expand All @@ -170,7 +170,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)
Expand Down

0 comments on commit 4c70666

Please sign in to comment.