
From: Colin Ian King <colin.i.king@gmail.com> mainline inclusion from mainline-v5.17-rc1 commit 3a856c14c31bb8ba35534e9a2f2273c1b322f372 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IC914B Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... -------------------------------- 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> Signed-off-by: Wang Liang <wangliang74@huawei.com> --- net/smc/smc_clc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/smc/smc_clc.c b/net/smc/smc_clc.c index 6a03ce0b5a6c..efc9240a7d35 100644 --- a/net/smc/smc_clc.c +++ b/net/smc/smc_clc.c @@ -1025,7 +1025,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; -- 2.34.1