Re: [PATCH] drm/i810: make i810_flush_queue() return void

2020-09-11 Thread Daniel Vetter
On Thu, Sep 10, 2020 at 10:06:10PM +0800, Jason Yan wrote: > 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

[PATCH] drm/i810: make i810_flush_queue() return void

2020-09-10 Thread Jason Yan
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: Hulk Robot Signed-off-by: Jason Yan ---