diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-10-06 06:17:00 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-11 15:58:58 (GMT) |
commit | ee760ab2a95a1c52c7c68dc30c181425c667a507 (patch) | |
tree | be58a76fc0c3f6045ee1f8356a9b74dcfc3dada0 | |
parent | 15fbc198e635733aefbb4bc8182c02b85ec11a30 (diff) | |
download | linux-fsl-qoriq-ee760ab2a95a1c52c7c68dc30c181425c667a507.tar.xz |
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>
-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 8943420..d1767d8 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; } |