mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
039ffeaae3
commit
847a75fb9e
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue