ethernet/sfc: remove redundant rc variable
Subsystems (3)
PATCH 1/1 ethernet/sfc: remove redundant rc variable
From: Minghao Chi <[email protected]>
Return value from efx_mcdi_rpc() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/net/ethernet/sfc/mcdi_port_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/ethernet/sfc/mcdi_port_common.c +1 -3
@@ -71,7 +71,6 @@ int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, u32 flags, u32 loopback_mode, u32 loopback_speed) {MCDI_DECLARE_BUF (inbuf ,MC_CMD_SET_LINK_IN_LEN ); -int rc;BUILD_BUG_ON (MC_CMD_SET_LINK_OUT_LEN !=0 );
@@ -80,9 +79,8 @@ int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities,MCDI_SET_DWORD (inbuf,SET_LINK_IN_LOOPBACK_MODE , loopback_mode);MCDI_SET_DWORD (inbuf,SET_LINK_IN_LOOPBACK_SPEED , loopback_speed); - rc =efx_mcdi_rpc (efx,MC_CMD_SET_LINK , inbuf,sizeof (inbuf), +return efx_mcdi_rpc (efx,MC_CMD_SET_LINK , inbuf,sizeof (inbuf),NULL ,0 ,NULL ); -return rc; }int efx_mcdi_loopback_modes (struct efx_nic *efx,u64 *loopback_modes)
Signature · 1 line
2.25.1
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 10 lines · On Tue, 4 Jan 2022 11:35:43 +0000 you wrote:
From: Minghao Chi <[email protected]>
Return value from
efx_mcdi_rpc()directly instead of taking this in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>Signed-off-by CGEL ZTE <[email protected]>[...]
Here is the summary with links:
- ethernet/sfc: remove redundant rc variable
https://git.kernel.org/netdev/net-next/c/416b27439df9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html