Commit 268d0a92 authored by Jason Yan's avatar Jason Yan Committed by Daniel Vetter

drm/i810: make i810_flush_queue() return void

This function always return '0' and no callers use the return value. So
make it a void function.

This eliminates the following coccicheck warning:

drivers/gpu/drm/i810/i810_dma.c:860:8-11: Unneeded variable: "ret".
Return "0" on line 885
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200910140610.1191578-1-yanaijie@huawei.com
parent 075342ea
...@@ -853,11 +853,11 @@ static void i810_dma_quiescent(struct drm_device *dev) ...@@ -853,11 +853,11 @@ static void i810_dma_quiescent(struct drm_device *dev)
i810_wait_ring(dev, dev_priv->ring.Size - 8); i810_wait_ring(dev, dev_priv->ring.Size - 8);
} }
static int i810_flush_queue(struct drm_device *dev) static void i810_flush_queue(struct drm_device *dev)
{ {
drm_i810_private_t *dev_priv = dev->dev_private; drm_i810_private_t *dev_priv = dev->dev_private;
struct drm_device_dma *dma = dev->dma; struct drm_device_dma *dma = dev->dma;
int i, ret = 0; int i;
RING_LOCALS; RING_LOCALS;
i810_kernel_lost_context(dev); i810_kernel_lost_context(dev);
...@@ -882,7 +882,7 @@ static int i810_flush_queue(struct drm_device *dev) ...@@ -882,7 +882,7 @@ static int i810_flush_queue(struct drm_device *dev)
DRM_DEBUG("still on client\n"); DRM_DEBUG("still on client\n");
} }
return ret; return;
} }
/* Must be called with the lock held */ /* Must be called with the lock held */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment