aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2021-05-17 20:03:59 +0300
committerDavid S. Miller <[email protected]>2021-05-17 15:15:46 -0700
commit51746a353b44f9e2635ebbe278c46b2d9303c9d9 (patch)
tree2ff98e34aa9e6837a5d6ceef03c44fd067d12bf7 /tools/perf/scripts/python
parent8c2b58e65d0186af5f73c7b78e46b798166d7f68 (diff)
mlxsw: spectrum_router: Avoid missing error code warning
Explicitly set the error code to zero before the goto statement to avoid the following smatch warning: drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:3598 mlxsw_sp_nexthop_group_refresh() warn: missing error code 'err' The warning is a false positive, but the change both suppresses the warning and makes it clear to future readers that this is not an error path. The original report and discussion can be found here [1]. [1] https://lore.kernel.org/lkml/[email protected]/ Cc: Dan Carpenter <[email protected]> Suggested-by: Dan Carpenter <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions