]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62db3ceb4a54bc7b9854d02c9ffd4545330d563e
tree910ea49f545803a15155c1160dc7c7be47ef0eb3
parent4610dbbca42ec6bbf0482d1ea0af6eb4a492d623
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