drm/nouveau: remove unnecessary null pointer check from nouveau_fence_new
authorCong Ding <dinggnu@gmail.com>
Tue, 15 Jan 2013 17:19:49 +0000 (18:19 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:37 +0000 (16:00 +1000)
commitb5d8f05204da22ec896145729eea1f875085126b
treeeb866059da699f4b8a007bc3159ea6b3fbd97125
parentfd69aee4271ead4bf5c759aeaf4f16ab3d63322f
drm/nouveau: remove unnecessary null pointer check from nouveau_fence_new

the variable chan is dereferenced in line 190, so it is no reason to check
null again in line 198.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c