Skip to contentSkip to conversation

staging:iio:dummy: Remove outdated comment

PATCH In review Lars-Peter Clausen 2 participants 2 messages May 11, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/iio/iio_simple_dummy.c |    2 --
 1 file changed, 2 deletions(-)
drivers/staging/iio/iio_simple_dummy.c +0 -2
index 3b4513c..3104119 100644
@@ -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;
Signature · 1 line
1.7.10
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

iio_device_free has to be called regardless of whether the device has been registered or not when freeing it.

Good spot,

Quoted 2 lines
Quoted 17 lines
---
  drivers/staging/iio/iio_simple_dummy.c |    2 --
  1 file changed, 2 deletions(-)
drivers/staging/iio/iio_simple_dummy.c +0 -2
index 3b4513c..3104119 100644
@@ -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;