staging:iio:dummy: Remove outdated comment
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 11 May 2012 13:12:29 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:26:44 +0000 (13:26 -0700)
iio_device_free has to be called regardless of whether the device has been
registered or not when freeing it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/iio_simple_dummy.c

index 3b4513c..3104119 100644 (file)
@@ -470,8 +470,6 @@ error_unconfigure_buffer:
 error_unregister_events:
        iio_simple_dummy_events_unregister(indio_dev);
 error_free_device:
-       /* Note free device should only be called, before registration
-        * has succeeded. */
        iio_device_free(indio_dev);
 error_ret:
        return ret;