mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Get rid of unused variable.
This commit is contained in:
parent
a41db9d436
commit
5976f6b32f
4
adl.c
4
adl.c
@ -784,9 +784,8 @@ static int set_fanspeed(int gpu, int iFanSpeed)
|
|||||||
|
|
||||||
static int set_powertune(int gpu, int iPercentage)
|
static int set_powertune(int gpu, int iPercentage)
|
||||||
{
|
{
|
||||||
int oldPercentage, dummy;
|
|
||||||
struct gpu_adl *ga;
|
struct gpu_adl *ga;
|
||||||
int ret = 1;
|
int dummy, ret = 1;
|
||||||
|
|
||||||
if (!gpus[gpu].has_adl || !adl_active) {
|
if (!gpus[gpu].has_adl || !adl_active) {
|
||||||
wlogprint("Set powertune not supported\n");
|
wlogprint("Set powertune not supported\n");
|
||||||
@ -794,7 +793,6 @@ static int set_powertune(int gpu, int iPercentage)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ga = &gpus[gpu].adl;
|
ga = &gpus[gpu].adl;
|
||||||
oldPercentage = ga->iPercentage;
|
|
||||||
|
|
||||||
lock_adl();
|
lock_adl();
|
||||||
ADL_Overdrive5_PowerControl_Set(ga->iAdapterIndex, iPercentage);
|
ADL_Overdrive5_PowerControl_Set(ga->iAdapterIndex, iPercentage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user