mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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 <colin.i.king@gmail.com> Link: https://patch.msgid.link/20241031135042.3250614-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
2e570cd187
commit
5c87206cdb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user