hwmon: (amc6821) Double unlock bug

The mutex gets unlocked after we goto EXIT.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
Dan Carpenter 2010-01-25 15:00:49 +01:00 committed by Jean Delvare
parent a00d643a2a
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;
}