]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: remove assignment for return value
authorWambui Karuga <wambui@karuga.xyz>
Sat, 19 Oct 2019 07:32:42 +0000 (10:32 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2019 15:19:00 +0000 (11:19 -0400)
commit3a0f00b2e85935101dc80c3d5507ea67b96f9f23
treefa825dacb8d51b835d2ac5f85c99661e4ac4a413
parent2453e0e2d48ee538b24102679c44b90f4c13f082
drm/radeon: remove assignment for return value

Remove unnecessary assignment for return value and have the
function return the required value directly.
Issue found by coccinelle:
@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Wambui Karuga <wambui@karuga.xyz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c