commit | cc2439fdecb85f27866cab0ae1cbf21a9b61c423 | [log] [tgz] |
---|---|---|
author | Jonathan Cameron <jic23@cam.ac.uk> | Fri Aug 12 16:55:30 2011 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue Aug 23 13:28:42 2011 -0700 |
tree | aa657228a17bbc86520bdc94b08a5b9dd468b14b | |
parent | cd0380190f7c7ad8d5a8f15403a67fedd37fcddb [diff] |
staging:iio:core simplify and fix a bug in iio_device_(un)register_event_set. The unwinding index was j, not i and it is much simpler to do these as a single loop unwinding those elements necessary in before jumping to the error handler. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>