diff options
author | Karsten Graul <kgraul@linux.vnet.ibm.com> | 2018-03-01 07:51:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-01 13:21:31 -0500 |
commit | be6d467b997f9e32aa9b27add06e7b0c8627a566 (patch) | |
tree | 1e9ae81ea5a5dea14d5c6c2709142a042646f2ef /net/smc/smc.h | |
parent | 696cd3016975d31e3499c49a7a747d7615a16b3b (diff) |
net/smc: remove unused fields from smc structures
The daddr field holds the destination IPv4 address. The field was set but
never used and can be removed. The addr field was a left-over from an
earlier version of non-blocking connects and can be removed.
The result of the call to kernel_getpeername is not used, the call can be
removed. Non-blocking connects are working, so remove restriction comment.
Signed-off-by: Karsten Graul <kgraul@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r-- | net/smc/smc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h index 9895c190d146..268cdf11533c 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h | |||
@@ -172,7 +172,6 @@ struct smc_sock { /* smc sock container */ | |||
172 | struct sock sk; | 172 | struct sock sk; |
173 | struct socket *clcsock; /* internal tcp socket */ | 173 | struct socket *clcsock; /* internal tcp socket */ |
174 | struct smc_connection conn; /* smc connection */ | 174 | struct smc_connection conn; /* smc connection */ |
175 | struct sockaddr *addr; /* inet connect address */ | ||
176 | struct smc_sock *listen_smc; /* listen parent */ | 175 | struct smc_sock *listen_smc; /* listen parent */ |
177 | struct work_struct tcp_listen_work;/* handle tcp socket accepts */ | 176 | struct work_struct tcp_listen_work;/* handle tcp socket accepts */ |
178 | struct work_struct smc_listen_work;/* prepare new accept socket */ | 177 | struct work_struct smc_listen_work;/* prepare new accept socket */ |
@@ -264,7 +263,7 @@ static inline bool using_ipsec(struct smc_sock *smc) | |||
264 | struct smc_clc_msg_local; | 263 | struct smc_clc_msg_local; |
265 | 264 | ||
266 | void smc_conn_free(struct smc_connection *conn); | 265 | void smc_conn_free(struct smc_connection *conn); |
267 | int smc_conn_create(struct smc_sock *smc, __be32 peer_in_addr, | 266 | int smc_conn_create(struct smc_sock *smc, |
268 | struct smc_ib_device *smcibdev, u8 ibport, | 267 | struct smc_ib_device *smcibdev, u8 ibport, |
269 | struct smc_clc_msg_local *lcl, int srv_first_contact); | 268 | struct smc_clc_msg_local *lcl, int srv_first_contact); |
270 | struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock); | 269 | struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock); |