Skip to content

Commit 7e6d978

Browse files
commodojic23
authored andcommitted
iio: adc: ti_am335x_adc: remove omitted iio_kfifo_free()
When the conversion was done to use devm_iio_kfifo_allocate(), a call to iio_kfifo_free() was omitted (to be removed). This change removes it. Fixes: 3c53080 ("iio: adc: ti_am335x_adc: alloc kfifo & IRQ via devm_ functions") Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent b6bc1b4 commit 7e6d978

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/iio/adc/ti_am335x_adc.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,12 @@ static int tiadc_iio_buffered_hardware_setup(struct device *dev,
397397
ret = devm_request_threaded_irq(dev, irq, pollfunc_th, pollfunc_bh,
398398
flags, indio_dev->name, indio_dev);
399399
if (ret)
400-
goto error_kfifo_free;
400+
return ret;
401401

402402
indio_dev->setup_ops = setup_ops;
403403
indio_dev->modes |= INDIO_BUFFER_SOFTWARE;
404404

405405
return 0;
406-
407-
error_kfifo_free:
408-
iio_kfifo_free(indio_dev->buffer);
409-
return ret;
410406
}
411407

412408
static const char * const chan_name_ain[] = {

0 commit comments

Comments
 (0)