drm: remove unnecessary return variable
authorWambui Karuga <wambui.karugax@gmail.com>
Sat, 19 Oct 2019 07:18:40 +0000 (10:18 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Oct 2019 09:17:43 +0000 (11:17 +0200)
commitddd9b54deebba64c37d04598c98035b5da037d38
tree489dd4ceeefbff69efb7458a28f0fc8181fc9fcd
parentec3b7b6eb8c90b52f61adff11b6db7a8db34de19
drm: remove unnecessary return variable

Remove unnecessary variable `ret` in drm_dp_atomic_find_vcpi_slots()
only used to hold the function return value and have the function
return the value directly.
Issue found by coccinelle:
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191019071840.16877-1-wambui@karuga.xyz
drivers/gpu/drm/drm_dp_mst_topology.c