summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-10-07 22:57:41 +0200
committerJakub Kicinski <kuba@kernel.org>2020-10-09 18:15:47 -0700
commitc60a2cefb32d2f0e88141b942f92d94bd69bb56f (patch)
tree5d3f219cb6d7fe04abba79d52677451f548e133f /include
parent8f5e71b9d3b510b18cc969bc8f43a2470e19568b (diff)
downloadlinux-c60a2cefb32d2f0e88141b942f92d94bd69bb56f.tar.bz2
net/smc: consolidate unlocking in same function
Static code checkers warn of inconsistent returns because the lgr mutex is locked in one function and unlocked in a function called by the locking function: net/smc/af_smc.c:823 smc_connect_rdma() warn: inconsistent returns 'smc_client_lgr_pending'. net/smc/af_smc.c:897 smc_connect_ism() warn: inconsistent returns 'smc_server_lgr_pending'. Make the code consistent by doing the unlock in the same function that fetches the lock. No functional changes. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions