summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_pnet.c
diff options
context:
space:
mode:
authorUrsula Braun2017-04-10 14:57:57 +0200
committerDavid S. Miller2017-04-12 05:01:14 +0200
commit249633a443fd12485d6f352d6cbe41efc92db233 (patch)
tree20c5bc6a978c79b705daf8f7ad6dfc327853f09c /net/smc/smc_pnet.c
parentnet/smc: get rid of old comment (diff)
downloadkernel-qcow2-linux-249633a443fd12485d6f352d6cbe41efc92db233.tar.gz
kernel-qcow2-linux-249633a443fd12485d6f352d6cbe41efc92db233.tar.xz
kernel-qcow2-linux-249633a443fd12485d6f352d6cbe41efc92db233.zip
net/smc: remove useless smc_ib_devices_list check
The global event handler is created only, if the ib_device has already been used by at least one link group. It is guaranteed that there exists the corresponding entry in the smc_ib_devices list. Get rid of this superfluous check. Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_pnet.c')
-rw-r--r--net/smc/smc_pnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c
index 9d3e7fb8348d..f1cff0159980 100644
--- a/net/smc/smc_pnet.c
+++ b/net/smc/smc_pnet.c
@@ -219,7 +219,7 @@ static bool smc_pnetid_valid(const char *pnet_name, char *pnetid)
}
/* Find an infiniband device by a given name. The device might not exist. */
-struct smc_ib_device *smc_pnet_find_ib(char *ib_name)
+static struct smc_ib_device *smc_pnet_find_ib(char *ib_name)
{
struct smc_ib_device *ibdev;