ptp: fc3: remove redundant check on variable ret
Subsystems (4)
PATCH 1/1 ptp: fc3: remove redundant check on variable ret
The check on ret has already been performed a few statements earlier and ret has not been re-assigned and so the re-checking is redundant. Clean up the code by removing the redundant check.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/ptp/ptp_fc3.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/ptp/ptp_fc3.c +0 -5
@@ -986,11 +986,6 @@ static int idtfc3_probe(struct platform_device *pdev)mutex_unlock (idtfc3->lock); -if (err) { -ptp_clock_unregister (idtfc3->ptp_clock); -return err; - } -platform_set_drvdata (pdev, idtfc3);return 0 ;
Signature · 1 line
2.39.5
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Thu, 31 Oct 2024 13:50:42 +0000 you wrote:
The check on ret has already been performed a few statements earlier and ret has not been re-assigned and so the re-checking is redundant. Clean up the code by removing the redundant check.
Signed-off-by Colin Ian King <[email protected]>--- drivers/ptp/ptp_fc3.c | 5 ----- 1 file changed, 5 deletions(-)
Here is the summary with links:
- [next] ptp: fc3: remove redundant check on variable ret
https://git.kernel.org/netdev/net-next/c/5c87206cdb53
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html