[PATCH 6/6] iio: adc: ad5755: drop redundant devm_kfree()
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Fri Jul 5 03:40:49 PDT 2024
The driver calls ad5755_parse_fw() only from probe() function, so
devm_kfree() during error path is not necessary and only makes code
weirder.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
---
drivers/iio/dac/ad5755.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c
index 0b24cb19ac9d..bfbfc3c1b6a5 100644
--- a/drivers/iio/dac/ad5755.c
+++ b/drivers/iio/dac/ad5755.c
@@ -803,7 +803,6 @@ static struct ad5755_platform_data *ad5755_parse_fw(struct device *dev)
error_out:
fwnode_handle_put(pp);
- devm_kfree(dev, pdata);
return NULL;
}
--
2.43.0
More information about the linux-arm-kernel
mailing list