From e59c0ac0a11e401dc4bb7524a431cbdbc680c881 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sun, 21 Oct 2012 11:52:00 +0100 Subject: [PATCH] --- yaml --- r: 337990 b: refs/heads/master c: e3db9ef6eb39ac6d969787bc15756778c2c5ca66 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/iio/industrialio-event.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index ce8ebb321702..f1aa5688f36c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8f45e3341ed8609174f9c21fb47e202f29ab039 +refs/heads/master: e3db9ef6eb39ac6d969787bc15756778c2c5ca66 diff --git a/trunk/drivers/iio/industrialio-event.c b/trunk/drivers/iio/industrialio-event.c index 857e6306c5c3..261cae00557e 100644 --- a/trunk/drivers/iio/industrialio-event.c +++ b/trunk/drivers/iio/industrialio-event.c @@ -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)