drm/vmwgfx: Fix fence event code
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 2 Dec 2014 11:36:57 +0000 (03:36 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 3 Dec 2014 08:48:14 +0000 (00:48 -0800)
commit89669e7a7f96be3ee8d9a22a071d7c0d3b4428fc
tree8e49f79ff3cdc811c3f5fc93a646d19596023cb0
parent1f563a6a46544602183e7493b6ef69769d3d76d9
drm/vmwgfx: Fix fence event code

The commit "vmwgfx: Rework fence event action" introduced a number of bugs
that are fixed with this commit:

a) A forgotten return stateemnt.
b) An if statement with identical branches.

Cc: <stable@vger.kernel.org>
Reported-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c