net/smc: add function to get link group from link
authorStefan Raspl <raspl@linux.ibm.com>
Mon, 23 Jul 2018 11:53:10 +0000 (13:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2018 17:57:14 +0000 (10:57 -0700)
commit00e5fb263f9f5f2af60754b79b7dcec0d5e88154
treebc20d7d57cf070dfe0736eb8fad4ed855304210e
parentbac6de7b637018f4caacfdf2b4ad8c8749de7420
net/smc: add function to get link group from link

Replace a frequently used construct with a more readable variant,
reducing the code. Also might come handy when we start to support
more than a single per link group.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c
net/smc/smc_core.h
net/smc/smc_ib.c
net/smc/smc_llc.c
net/smc/smc_wr.c