Staging: iio/light/tsl2563: unlock on an error path

We need to unlock here before returning.

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>
This commit is contained in:
Dan Carpenter 2011-10-06 09:15:03 +03:00 committed by Greg Kroah-Hartman
parent 15b80d6417
commit 97d35f281e

View file

@ -518,7 +518,8 @@ static int tsl2563_read_raw(struct iio_dev *indio_dev,
ret = IIO_VAL_INT;
break;
default:
return -EINVAL;
ret = -EINVAL;
goto error_ret;
}
error_ret: