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: 387707fdf4
("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>
This commit is contained in:
parent
d7cd421da9
commit
3a856c14c3
|
@ -1021,7 +1021,6 @@ static int smc_clc_send_confirm_accept(struct smc_sock *smc,
|
||||||
struct smc_link *link = conn->lnk;
|
struct smc_link *link = conn->lnk;
|
||||||
|
|
||||||
/* SMC-R specific settings */
|
/* SMC-R specific settings */
|
||||||
link = conn->lnk;
|
|
||||||
memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER,
|
memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER,
|
||||||
sizeof(SMC_EYECATCHER));
|
sizeof(SMC_EYECATCHER));
|
||||||
clc->hdr.typev1 = SMC_TYPE_R;
|
clc->hdr.typev1 = SMC_TYPE_R;
|
||||||
|
|
Loading…
Reference in New Issue