Skip to contentSkip to conversation

net/smc: remove redundant re-assignment of pointer link

PATCH Applied Colin Ian King 3 participants 3 messages Dec 30, 2021 – Jan 2, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/smc/smc_clc.c | 1 -
 1 file changed, 1 deletion(-)
net/smc/smc_clc.c +0 -1
index 8409ab71a5e4..6be95a2a7b25 100644
@@ -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;
Signature · 1 line
2.33.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Colin Ian King

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.

It would be better to add Fixes statement in the end of message.

Fixes 387707fdf486 ("net/smc: convert static link ID to dynamic references")

And [PATCH net ...] is fine to point out the target. The patch itself looks good to me, thanks.

Thanks,
Tony Lu

#2 lore raw
In reply to Colin Ian King
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Thu, 30 Dec 2021 15:39:00 +0000 you wrote:

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.

---
 net/smc/smc_clc.c | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- net/smc: remove redundant re-assignment of pointer link

    https://git.kernel.org/netdev/net-next/c/3a856c14c31b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html