mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm/nouveau/core: fix static checker warning
object->engine cannot be NULL, it's either valid, or an error pointer. This particular condition shouldn't actually be possible, but just in case, we'll keep it. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
This commit is contained in:
parent
80a92865f2
commit
89ed10a572
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ nvkm_object_ctor(const struct nvkm_object_func *func,
|
|||
INIT_LIST_HEAD(&object->head);
|
||||
INIT_LIST_HEAD(&object->tree);
|
||||
RB_CLEAR_NODE(&object->node);
|
||||
WARN_ON(oclass->engine && !object->engine);
|
||||
WARN_ON(IS_ERR(object->engine));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue