diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 10:29:39 (GMT) |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-11-26 16:40:00 (GMT) |
commit | 99f9be4c73cff20ec64793be68f03f927474298c (patch) | |
tree | 507586c70e3ecb724bab1efae8d77388a3fcb54b /drivers/gpu | |
parent | 025af189fb44250206dd8a32fa4a682392af3301 (diff) | |
download | linux-99f9be4c73cff20ec64793be68f03f927474298c.tar.xz |
drm/vmwgfx: fix a warning message
The WARN_ON() macro only takes a condition argument, it doesn't take
a message. I have converted this to WARN() instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c index a8baf5f..b6a0806 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c @@ -390,7 +390,7 @@ void *vmw_fifo_reserve_dx(struct vmw_private *dev_priv, uint32_t bytes, else if (ctx_id == SVGA3D_INVALID_ID) ret = vmw_local_fifo_reserve(dev_priv, bytes); else { - WARN_ON("Command buffer has not been allocated.\n"); + WARN(1, "Command buffer has not been allocated.\n"); ret = NULL; } if (IS_ERR_OR_NULL(ret)) { |