lkml.org 
[lkml]   [2016]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2/7] iio: Rename a jump label in iio_buffer_store_watermark()
    From
    Date
    From: Markus Elfring <elfring@users.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@users.sourceforge.net>
    ---
    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;
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-24 08:26    [W:4.016 / U:1.520 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site