staging:iio:dummy: Remove outdated comment

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>
This commit is contained in:
Lars-Peter Clausen 2012-05-11 15:12:29 +02:00 committed by Greg Kroah-Hartman
parent 7cb2e629a2
commit 5d4172cd63

View File

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