Commit 847a75fb authored by Wambui Karuga's avatar Wambui Karuga Committed by Alex Deucher

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: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarWambui Karuga <wambui@karuga.xyz>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 039ffeaa
...@@ -221,9 +221,7 @@ int ci_get_temp(struct radeon_device *rdev) ...@@ -221,9 +221,7 @@ int ci_get_temp(struct radeon_device *rdev)
else else
actual_temp = temp & 0x1ff; actual_temp = temp & 0x1ff;
actual_temp = actual_temp * 1000; return actual_temp * 1000;
return actual_temp;
} }
/* get temperature in millidegrees */ /* get temperature in millidegrees */
...@@ -239,9 +237,7 @@ int kv_get_temp(struct radeon_device *rdev) ...@@ -239,9 +237,7 @@ int kv_get_temp(struct radeon_device *rdev)
else else
actual_temp = 0; actual_temp = 0;
actual_temp = actual_temp * 1000; return actual_temp * 1000;
return actual_temp;
} }
/* /*
......
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