smc: cleanup close checking during data receival
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Thu, 7 Dec 2017 12:38:47 +0000 (13:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 20:03:12 +0000 (15:03 -0500)
commit71c125c3f23d714c1d0725ca11c9f27416f697c8
treee4b6298d4e5854fb848e47333eacc8998252865b
parent4bd3e7fbfadcd284b1582a284d076afebbe3479d
smc: cleanup close checking during data receival

When waiting for data to be received it must be checked if the
peer signals shutdown. The SMC code uses two different checks
for this purpose, even though just one check is sufficient.
This patch removes the superfluous test for SOCK_DONE.

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