Smatch reported two cases of redundant code which can be removed from this driver. Also a case of leaking memory on error exit.
Signed-off-by: Andrew Goodbody <andrew.goodb...@linaro.org> --- Andrew Goodbody (3): net: octeontx: Remove unneeded code net: octeontx: Remove unneeded test net: octeontx: Free allocated memory on error drivers/net/octeontx/nicvf_main.c | 51 ++++++++++++++++++--------------------- drivers/net/octeontx/smi.c | 12 +++++++-- 2 files changed, 34 insertions(+), 29 deletions(-) --- base-commit: 007610da2cca405ea7739fc120d90085be4b6ac2 change-id: 20250805-net_octeontx-770c68e2a77a Best regards, -- Andrew Goodbody <andrew.goodb...@linaro.org>