net: octeontx2: Restore default value for err
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 14:53:34 +0000 (15:53 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 13:47:57 +0000 (15:47 +0200)
commit6bc6fec3b33f3c14f14493783db9258ac9938062
tree3899c6b5cb4f1060996943f9693235dfe80b0225
parentc6561a467c9f9a77717ddc2ef296866a4d8a6843
net: octeontx2: Restore default value for err

In nix_lf_setup there is a default value assigned to err in case an
error is detected. However this default value will be overwritten in the
for loop so that later code does not return an error code from the
function. Add a new assignment to restore err to the default error code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/net/octeontx2/nix.c