From: Jonathan Cameron Date: Fri, 12 Aug 2011 15:55:30 +0000 (+0100) Subject: staging:iio:core simplify and fix a bug in iio_device_(un)register_event_set. X-Git-Tag: v3.2-rc1~169^2^2~864^2~257 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc2439fdecb85f27866cab0ae1cbf21a9b61c423;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed