diff options
author | Tom Rix <[email protected]> | 2022-03-05 09:14:48 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-03-07 12:25:59 +0000 |
commit | cd5169841c49dab75ecc3b20b3bd1100395b6909 (patch) | |
tree | ec55933b9b58a0004ffc993a9325e8686f3be4c0 /drivers/fpga/fpga-bridge.c | |
parent | 0273d10182ec4507a43b868dd80fd62860b7e948 (diff) |
net: dsa: return success if there was nothing to do
Clang static analysis reports this representative issue
dsa.c:486:2: warning: Undefined or garbage value
returned to caller
return err;
^~~~~~~~~~
err is only set in the loop. If the loop is empty,
garbage will be returned. So initialize err to 0
to handle this noop case.
Signed-off-by: Tom Rix <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions