diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-10-06 09:17:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-11 09:58:58 -0600 |
commit | ee760ab2a95a1c52c7c68dc30c181425c667a507 (patch) | |
tree | be58a76fc0c3f6045ee1f8356a9b74dcfc3dada0 /drivers/staging/iio/adc | |
parent | 15fbc198e635733aefbb4bc8182c02b85ec11a30 (diff) |
Staging: iio/adc/ad7150: release lock on error
The error_ret label should have been before the mutex_unlock(). It's
a typo.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/adc')
-rw-r--r-- | drivers/staging/iio/adc/ad7150.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7150.c b/drivers/staging/iio/adc/ad7150.c index 89434205b6f1..d1767d8f8bdb 100644 --- a/drivers/staging/iio/adc/ad7150.c +++ b/drivers/staging/iio/adc/ad7150.c @@ -332,8 +332,8 @@ static int ad7150_write_event_value(struct iio_dev *indio_dev, /* write back if active */ ret = ad7150_write_event_params(indio_dev, event_code); - mutex_unlock(&chip->state_lock); error_ret: + mutex_unlock(&chip->state_lock); return ret; } |