Merge pull request #331 from zhouzi88/swl-4343

bug fix
This commit is contained in:
Jeffrey Townsend
2018-03-19 07:17:45 -07:00
committed by GitHub

View File

@@ -269,8 +269,7 @@ static int accton_as6712_32x_fan_write_value(u8 reg, u8 value)
static void accton_as6712_32x_fan_update_device(struct device *dev)
{
int speed, r_speed, fault, r_fault, direction, ctrl_speed;
int i;
int retry_count = 5;
int i, retry_count;
mutex_lock(&fan_data->update_lock);
@@ -300,6 +299,8 @@ static void accton_as6712_32x_fan_update_device(struct device *dev)
for (i = 0; i < FAN_MAX_NUMBER; i++)
{
retry_count = 5;
/* Update fan data
*/