OSDN Git Service

net/smc: move code to clear the conn->lgr field
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 7 Feb 2019 14:56:19 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:06:19 +0000 (18:06 -0800)
commit8fc002b01a4e3ecc223201c304e3f2217899aff6
tree6ca7233a58e3af5bd8382184e2586d54886e054e
parent72a36a8aecb520f8af6529476dae16f7b6a3d87e
net/smc: move code to clear the conn->lgr field

The lgr field of an smc_connection is set in smc_conn_create() and
should be cleared in smc_conn_free() for consistency reasons, so move
the responsible code.

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