From: Jonathan Cameron <jic23@kernel.org>
To: Dan Carpenter <dan.carpenter@oracle.com>,
Tiberiu Breana <tiberiu.a.breana@intel.com>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
linux-iio@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch v2] iio: humidity: am2315: Remove a stray unlock
Date: Sat, 21 May 2016 17:48:05 +0100 [thread overview]
Message-ID: <158f3365-e2c4-49a0-6bd4-25b198ae1e09@kernel.org> (raw)
In-Reply-To: <20160517080256.GC11011@mwanda>
On 17/05/16 09:02, Dan Carpenter wrote:
> We haven't taken the lock yet so we don't need to unlock here.
>
> Fixes: 0d96d5ead3f7 ('iio: humidity: Add triggered buffer support for AM2315')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> Acked-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Applied to the fixes-togreg-post-rc1 branch of iio.git
Thanks,
Jonathan
> ---
> v2: update subject
>
> diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c
> index 3be6d20..1153591 100644
> --- a/drivers/iio/humidity/am2315.c
> +++ b/drivers/iio/humidity/am2315.c
> @@ -165,10 +165,8 @@ static irqreturn_t am2315_trigger_handler(int irq, void *p)
> struct am2315_sensor_data sensor_data;
>
> ret = am2315_read_data(data, &sensor_data);
> - if (ret < 0) {
> - mutex_unlock(&data->lock);
> + if (ret < 0)
> goto err;
> - }
>
> mutex_lock(&data->lock);
> if (*(indio_dev->active_scan_mask) == AM2315_ALL_CHANNEL_MASK) {
>
prev parent reply other threads:[~2016-05-21 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-17 7:31 [patch] iio: humidity: Remove a stray unlock Dan Carpenter
2016-05-17 7:43 ` Breana, Tiberiu A
2016-05-17 8:00 ` Dan Carpenter
2016-05-17 8:02 ` [patch v2] iio: humidity: am2315: " Dan Carpenter
2016-05-21 16:48 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=158f3365-e2c4-49a0-6bd4-25b198ae1e09@kernel.org \
--to=jic23@kernel.org \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
--cc=tiberiu.a.breana@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox