summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWambui Karuga <wambui@karuga.xyz>2019-10-19 10:32:42 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-10-28 11:19:00 -0400
commit847a75fb9e13fe6749bea25315310cdd3431d30c (patch)
treefa825dacb8d51b835d2ac5f85c99661e4ac4a413
parent039ffeaae307d61318742e0b2f79742e08ea6b8b (diff)
downloadlinux-847a75fb9e13fe6749bea25315310cdd3431d30c.tar.bz2
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>
-rw-r--r--drivers/gpu/drm/radeon/cik.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 62eab82a64f9..daff9a2af3be 100644
--- a/drivers/gpu/drm/radeon/cik.c
+++ b/drivers/gpu/drm/radeon/cik.c
@@ -221,9 +221,7 @@ int ci_get_temp(struct radeon_device *rdev)
else
actual_temp = temp & 0x1ff;
- actual_temp = actual_temp * 1000;
-
- return actual_temp;
+ return actual_temp * 1000;
}
/* get temperature in millidegrees */
@@ -239,9 +237,7 @@ int kv_get_temp(struct radeon_device *rdev)
else
actual_temp = 0;
- actual_temp = actual_temp * 1000;
-
- return actual_temp;
+ return actual_temp * 1000;
}
/*