]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: remove useless smc_ib_devices_list check
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Mon, 10 Apr 2017 12:57:57 +0000 (14:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 03:01:14 +0000 (23:01 -0400)
commitf8d989b687729a4ed4e6248d54d59afdca890de4
tree20c5bc6a978c79b705daf8f7ad6dfc327853f09c
parent2860af2991a1edfa918fd0a663491417d8654cdc
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>
net/smc/smc_ib.c
net/smc/smc_pnet.c
net/smc/smc_pnet.h