Re: [PATCH] staging:iio:adc:ad7816: Backward resources cleanups in probe

2018-06-18 Thread Lars-Peter Clausen
On 06/19/2018 01:38 AM, Karim Eshapa wrote: > Backward cleanups for all resources allocated in probing > in case of failure at any regestering or allocation step. Hi, Thanks for the patch. Resources that are allocated with devm_ are freed automatically in case of an error, so this patch should

Re: [PATCH] staging:iio:adc:ad7816: Backward resources cleanups in probe

2018-06-18 Thread Lars-Peter Clausen
On 06/19/2018 01:38 AM, Karim Eshapa wrote: > Backward cleanups for all resources allocated in probing > in case of failure at any regestering or allocation step. Hi, Thanks for the patch. Resources that are allocated with devm_ are freed automatically in case of an error, so this patch should

[PATCH] staging:iio:adc:ad7816: Backward resources cleanups in probe

2018-06-18 Thread Karim Eshapa
Backward cleanups for all resources allocated in probing in case of failure at any regestering or allocation step. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7816.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git

[PATCH] staging:iio:adc:ad7816: Backward resources cleanups in probe

2018-06-18 Thread Karim Eshapa
Backward cleanups for all resources allocated in probing in case of failure at any regestering or allocation step. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7816.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git