Skip to content

Commit

Permalink
staging:iio:dummy: Remove outdated comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed May 14, 2012
1 parent 7cb2e62 commit 5d4172c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/iio/iio_simple_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d4172c

Please sign in to comment.