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:
committed by
Jakub Kicinski
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;
|
||||
|
||||
Reference in New Issue
Block a user