aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorSinclair Yeh <syeh@vmware.com>2017-07-17 23:28:36 -0700
committerSinclair Yeh <syeh@vmware.com>2017-07-17 23:41:21 -0700
commitfcfffdd8f98ac305285dca568b5065ef86be6458 (patch)
tree3e82fda6fae0d0ebb1ab4b8c2337f4bf27e7713d /drivers/gpu
parentdrm/vmwgfx: Fix cursor hotspot issue with Wayland on Fedora (diff)
downloadlinux-dev-fcfffdd8f98ac305285dca568b5065ef86be6458.tar.xz
linux-dev-fcfffdd8f98ac305285dca568b5065ef86be6458.zip
drm/vmwgfx: Fix gcc-7.1.1 warning
The current code does not look correct, and the reason for it is probably lost. Since this now generates a compiler warning, fix it to what makes sense. Cc: <stable@vger.kernel.org> Reported-by: Arnd Bergmann <arnd@arndb.de> Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index c8faf1ac5333..2cfb3c93f42a 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@ -519,7 +519,7 @@ static int vmw_cmd_invalid(struct vmw_private *dev_priv,
struct vmw_sw_context *sw_context,
SVGA3dCmdHeader *header)
{
- return capable(CAP_SYS_ADMIN) ? : -EINVAL;
+ return -EINVAL;
}
static int vmw_cmd_ok(struct vmw_private *dev_priv,