Smatch reported two issues with this driver, firstly an error code not being set and secondly dereferencing a variable that could be NULL.
Signed-off-by: Andrew Goodbody <andrew.goodb...@linaro.org> --- Andrew Goodbody (2): net: octeontx2: Restore default value for err net: octeontx2: NULL check before dereference drivers/net/octeontx2/nix.c | 2 ++ drivers/net/octeontx2/rvu_af.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) --- base-commit: 007610da2cca405ea7739fc120d90085be4b6ac2 change-id: 20250805-octeontx2-e9831b326a5f Best regards, -- Andrew Goodbody <andrew.goodb...@linaro.org>