Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337990
b: refs/heads/master
c: e3db9ef
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Jonathan Cameron committed Nov 17, 2012
1 parent 594e64f commit e59c0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: e8f45e3341ed8609174f9c21fb47e202f29ab039
refs/heads/master: e3db9ef6eb39ac6d969787bc15756778c2c5ca66
7 changes: 1 addition & 6 deletions trunk/drivers/iio/industrialio-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,10 @@ static inline int __iio_add_event_config_attrs(struct iio_dev *indio_dev)
ret = iio_device_add_event_sysfs(indio_dev,
&indio_dev->channels[j]);
if (ret < 0)
goto error_clear_attrs;
return ret;
attrcount += ret;
}
return attrcount;

error_clear_attrs:
__iio_remove_event_config_attrs(indio_dev);

return ret;
}

static bool iio_check_for_dynamic_events(struct iio_dev *indio_dev)
Expand Down

0 comments on commit e59c0ac

Please sign in to comment.