[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dfb5e8de-8217-ba50-017a-6a3c20209419@kernel.org>
Date: Sat, 24 Sep 2016 16:32:30 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>,
linux-iio@...r.kernel.org, Hartmut Knaack <knaack.h@....de>,
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: Re: [PATCH 2/7] iio: Rename a jump label in
iio_buffer_store_watermark()
On 24/09/16 07:25, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> Date: Sat, 24 Sep 2016 06:54:49 +0200
>
> Adjust jump labels according to the current Linux coding style convention.
>
> Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
I'm not necessarily against this change which does perhaps clarify the code
ever so slightly, but I am interested to know where
'current Linux coding style convention' comes from?
Jonathan
> ---
> drivers/iio/industrialio-buffer.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c
> index 7a4d9499..a865af8 100644
> --- a/drivers/iio/industrialio-buffer.c
> +++ b/drivers/iio/industrialio-buffer.c
> @@ -1028,16 +1028,16 @@ static ssize_t iio_buffer_store_watermark(struct device *dev,
>
> if (val > buffer->length) {
> ret = -EINVAL;
> - goto out;
> + goto unlock;
> }
>
> if (iio_buffer_is_active(indio_dev->buffer)) {
> ret = -EBUSY;
> - goto out;
> + goto unlock;
> }
>
> buffer->watermark = val;
> -out:
> +unlock:
> mutex_unlock(&indio_dev->mlock);
>
> return ret ? ret : len;
>
Powered by blists - more mailing lists