Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d4172cd authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Greg Kroah-Hartman
Browse files

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7cb2e629
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -470,8 +470,6 @@ static int __devinit iio_dummy_probe(int index)
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;