OSDN Git Service

net/smc: code cleanup smc_listen_work
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 12 Apr 2019 10:57:28 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commit228bae05be328045e6dfb4d3bf2600e6547c1d13
tree3c32a02176ee4706b7a088930b75f7723580e9b6
parentfba7e8ef513ce7309d62eb4999b640100b6db06f
net/smc: code cleanup smc_listen_work

In smc_listen_work() the variables rc and reason_code are defined which
have the same meaning. Eliminate reason_code in favor of the shorter
name rc. No functional changes.
Rename the functions smc_check_ism() and smc_check_rdma() into
smc_find_ism_device() and smc_find_rdma_device() to make there purpose
more clear. No functional changes.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c