diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/core/core/object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/core/object.c b/drivers/gpu/drm/nouveau/core/core/object.c index 0daab62ea14c..3b2e7b6304d3 100644 --- a/drivers/gpu/drm/nouveau/core/core/object.c +++ b/drivers/gpu/drm/nouveau/core/core/object.c | |||
| @@ -278,7 +278,6 @@ nouveau_object_del(struct nouveau_object *client, u32 _parent, u32 _handle) | |||
| 278 | struct nouveau_object *parent = NULL; | 278 | struct nouveau_object *parent = NULL; |
| 279 | struct nouveau_object *namedb = NULL; | 279 | struct nouveau_object *namedb = NULL; |
| 280 | struct nouveau_handle *handle = NULL; | 280 | struct nouveau_handle *handle = NULL; |
| 281 | int ret = -EINVAL; | ||
| 282 | 281 | ||
| 283 | parent = nouveau_handle_ref(client, _parent); | 282 | parent = nouveau_handle_ref(client, _parent); |
| 284 | if (!parent) | 283 | if (!parent) |
| @@ -295,7 +294,7 @@ nouveau_object_del(struct nouveau_object *client, u32 _parent, u32 _handle) | |||
| 295 | } | 294 | } |
| 296 | 295 | ||
| 297 | nouveau_object_ref(NULL, &parent); | 296 | nouveau_object_ref(NULL, &parent); |
| 298 | return ret; | 297 | return handle ? 0 : -EINVAL; |
| 299 | } | 298 | } |
| 300 | 299 | ||
| 301 | int | 300 | int |
