diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2021-12-30 15:39:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-02 12:14:10 +0000 |
commit | 3a856c14c31bb8ba35534e9a2f2273c1b322f372 (patch) | |
tree | 4a4e9ae47c3fc72586823fb63c009a654f3714f3 /net | |
parent | d7cd421da9da2cc7b4d25b8537f66db5c8331c40 (diff) | |
download | linux-3a856c14c31bb8ba35534e9a2f2273c1b322f372.tar.bz2 |
net/smc: remove redundant re-assignment of pointer link
The pointer link is being re-assigned the same value that it was
initialized with in the previous declaration statement. The
re-assignment is redundant and can be removed.
Fixes: 387707fdf486 ("net/smc: convert static link ID to dynamic references")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/smc/smc_clc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/smc/smc_clc.c b/net/smc/smc_clc.c index 8409ab71a5e4..6be95a2a7b25 100644 --- a/net/smc/smc_clc.c +++ b/net/smc/smc_clc.c @@ -1021,7 +1021,6 @@ static int smc_clc_send_confirm_accept(struct smc_sock *smc, struct smc_link *link = conn->lnk; /* SMC-R specific settings */ - link = conn->lnk; memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER, sizeof(SMC_EYECATCHER)); clc->hdr.typev1 = SMC_TYPE_R; |