]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: refactor device tree parsing
authorGustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>
Mon, 23 Feb 2026 11:42:07 +0000 (08:42 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:45:31 +0000 (15:45 +0100)
commita8422facc2c8167d7bd72da99c8dc1ee3bfc181f
tree2f22cf5a062d062a275f1cb099db2d61b1b28f0b
parentc2be939e93369568066554c37b222c4c309710c9
staging: axis-fifo: refactor device tree parsing

Refactor the device tree parsing logic in axis_fifo_probe() to reduce
verbosity and simplify error handling.

Remove the verbose error logging and goto logic. Instead, check
of_property_read_u32() return values directly and propagate error codes
immediately. This aligns the driver with modern kernel standards by
removing unnecessary error messages during probe.

Signed-off-by: Gustavo Piaz da Silva <gustavopiazdasilva2102@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260223114207.3639-3-gustavopiazdasilva2102@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c