[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7b90323b-2eff-ce51-588a-a9f6c1e5c2ed@users.sourceforge.net>
Date: Sat, 24 Sep 2016 08:26:44 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-iio@...r.kernel.org, Hartmut Knaack <knaack.h@....de>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 3/7] iio: Rename a jump label in iio_buffer_store_enable()
From: Markus Elfring <elfring@...rs.sourceforge.net>
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@...rs.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
Powered by blists - more mailing lists