summaryrefslogtreecommitdiff
path: root/net/smc/smc_pnet.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.vnet.ibm.com>2017-04-10 15:57:57 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-12 06:01:14 +0300
commit249633a443fd12485d6f352d6cbe41efc92db233 (patch)
tree20c5bc6a978c79b705daf8f7ad6dfc327853f09c /net/smc/smc_pnet.h
parent3c22e8f3200227d64fc4b1795b12b2cdc9099cd6 (diff)
downloadlinux-249633a443fd12485d6f352d6cbe41efc92db233.tar.xz
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.h')
-rw-r--r--net/smc/smc_pnet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/smc/smc_pnet.h b/net/smc/smc_pnet.h
index 32ab3df928ca..c4f1bccd4358 100644
--- a/net/smc/smc_pnet.h
+++ b/net/smc/smc_pnet.h
@@ -16,7 +16,6 @@ struct smc_ib_device;
int smc_pnet_init(void) __init;
void smc_pnet_exit(void);
int smc_pnet_remove_by_ibdev(struct smc_ib_device *ibdev);
-struct smc_ib_device *smc_pnet_find_ib(char *ib_name);
void smc_pnet_find_roce_resource(struct sock *sk,
struct smc_ib_device **smcibdev, u8 *ibport);