aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMatthieu Baerts <[email protected]>2022-12-08 16:44:31 -0800
committerJakub Kicinski <[email protected]>2022-12-09 19:46:11 -0800
commit03e7d28cd25ee6ff731386fb154d03f76dede1cc (patch)
tree1a4ecba88e58f0dc8bf1d78eb7c592a686c1170b /lib/mpi/mpiutil.c
parent8b34b52c1794932a16308631121b758830349ae9 (diff)
mptcp: return 0 instead of 'err' var
When 'err' is 0, it looks clearer to return '0' instead of the variable called 'err'. The behaviour is then not modified, just a clearer code. By doing this, we can also avoid false positive smatch warnings like this one: net/mptcp/pm_netlink.c:1169 mptcp_pm_parse_pm_addr_attr() warn: missing error code? 'err' Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Suggested-by: Mat Martineau <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: Matthieu Baerts <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions