[PATCH 3/7] iio: Rename a jump label in iio_buffer_store_enable()

SF Markus Elfring
2016-09-24T06:27:04Z

Date: Sat, 24 Sep 2016 07:11:32 +0200

Adjust a jump label according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/iio/industrialio-buffer.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c
index a865af8..6509f0f 100644
--- a/drivers/iio/industrialio-buffer.c
+++ b/drivers/iio/industrialio-buffer.c
@@ -982,7 +982,7 @@ static ssize_t iio_buffer_store_enable(struct device *dev,
inlist = iio_buffer_is_active(indio_dev->buffer);
/* Already in desired state */
if (inlist == requested_state)
- goto done;
+ goto unlock;

if (requested_state)
ret = __iio_update_buffers(indio_dev,
@@ -990,8 +990,7 @@ static ssize_t iio_buffer_store_enable(struct device *dev,
else
ret = __iio_update_buffers(indio_dev,
NULL, indio_dev->buffer);
-
-done:
+unlock:
mutex_unlock(&indio_dev->mlock);
return (ret < 0) ? ret : len;
}
--
2.10.0