Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317874
b: refs/heads/master
c: e59b9af
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Jonathan Cameron committed Jul 12, 2012
1 parent b2833e8 commit 6372666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21fa54e4017fb0ed2107282e6057528ca59b8942
refs/heads/master: e59b9afecf7ddf52d31d24e800b473f19c23cfe0
3 changes: 2 additions & 1 deletion trunk/drivers/iio/inkern.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ struct iio_channel *iio_channel_get_all(const char *name)
iio_device_get(chans[mapind].indio_dev);
mapind++;
}
mutex_unlock(&iio_map_list_lock);
if (mapind == 0) {
ret = -ENODEV;
goto error_free_chans;
}
mutex_unlock(&iio_map_list_lock);

return chans;

error_free_chans:
Expand Down

0 comments on commit 6372666

Please sign in to comment.