summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity/am2315.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-20 17:25:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-20 17:25:44 +0200
commitaf52739b922f656eb1f39016fabaabe4baeda2e2 (patch)
tree79a7aa810d0493cd0cf4adebac26d37f12e8b545 /drivers/iio/humidity/am2315.c
parentstaging/lustre: Update FID documentation link. (diff)
parentLinux 4.7-rc4 (diff)
downloadlinux-af52739b922f656eb1f39016fabaabe4baeda2e2.tar.xz
linux-af52739b922f656eb1f39016fabaabe4baeda2e2.zip
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in drivers/iio/industrialio-trigger.c Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/humidity/am2315.c')
-rw-r--r--drivers/iio/humidity/am2315.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c
index 8de39bd349f9..3e200f69e886 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) {