drm/vmwgfx: Annotate ignored return values
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 19 Jan 2017 18:57:00 +0000 (10:57 -0800)
committerSinclair Yeh <syeh@vmware.com>
Fri, 27 Jan 2017 04:52:27 +0000 (20:52 -0800)
Cast return values to void since they, based on input arguments,
are known to be zero.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

index c894a48a74a62c532ea430cf4d54f0934d07d482..c7cf48c0ad3eab44148109549dc54c4d4254ccd3 100644 (file)
@@ -839,7 +839,7 @@ static void vmw_move_notify(struct ttm_buffer_object *bo,
  */
 static void vmw_swap_notify(struct ttm_buffer_object *bo)
 {
-       ttm_bo_wait(bo, false, false);
+       (void) ttm_bo_wait(bo, false, false);
 }
 
 
index be35385bb26c8b2f3b253b28ba98eaad10a9585b..541a5887dd6c49ab6f5a2f3ec684e775cda39357 100644 (file)
@@ -1293,7 +1293,7 @@ static void __vmw_svga_enable(struct vmw_private *dev_priv)
  */
 void vmw_svga_enable(struct vmw_private *dev_priv)
 {
-       ttm_read_lock(&dev_priv->reservation_sem, false);
+       (void) ttm_read_lock(&dev_priv->reservation_sem, false);
        __vmw_svga_enable(dev_priv);
        ttm_read_unlock(&dev_priv->reservation_sem);
 }
index 8e86d6d4141b2931361e7b15891d57d92a4dcea5..65b3f0369636710eda49086f72e250478dfe288d 100644 (file)
@@ -1760,7 +1760,7 @@ void vmw_resource_unpin(struct vmw_resource *res)
        struct vmw_private *dev_priv = res->dev_priv;
        int ret;
 
-       ttm_read_lock(&dev_priv->reservation_sem, false);
+       (void) ttm_read_lock(&dev_priv->reservation_sem, false);
        mutex_lock(&dev_priv->cmdbuf_mutex);
 
        ret = vmw_resource_reserve(res, false, true);
@@ -1770,7 +1770,7 @@ void vmw_resource_unpin(struct vmw_resource *res)
        if (--res->pin_count == 0 && res->backup) {
                struct vmw_dma_buffer *vbo = res->backup;
 
-               ttm_bo_reserve(&vbo->base, false, false, NULL);
+               (void) ttm_bo_reserve(&vbo->base, false, false, NULL);
                vmw_bo_pin_reserved(vbo, false);
                ttm_bo_unreserve(&vbo->base);
        }