hwmon: (amc6821) Double unlock bug

The mutex gets unlocked after we goto EXIT.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
Dan Carpenter 2010-01-25 15:00:49 +01:00 • committed by Jean Delvare
commit 316e2664dc

View file

@ -686,7 +686,6 @@ static ssize_t set_fan1_div(
data->fan1_div = 4;
break;
default:
mutex_unlock(&data->update_lock);
count = -EINVAL;
goto EXIT;
}