drm/nouveau/core: fix static checker warning
authorBen Skeggs <bskeggs@redhat.com>
Thu, 4 May 2017 07:29:03 +0000 (17:29 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 11 May 2017 22:32:56 +0000 (08:32 +1000)
commit89ed10a5721d569b053a8355c1a6bd812fed7c29
tree910ea49f545803a15155c1160dc7c7be47ef0eb3
parent80a92865f2113fe8bc268218b0c4156cfab4c9ac
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 <dan.carpenter@oracle.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/core/object.c