Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Jakub Kicinski
5c87206c 2e570cd1

-5
-5
drivers/ptp/ptp_fc3.c
··· 986 986 987 987 mutex_unlock(idtfc3->lock); 988 988 989 - if (err) { 990 - ptp_clock_unregister(idtfc3->ptp_clock); 991 - return err; 992 - } 993 - 994 989 platform_set_drvdata(pdev, idtfc3); 995 990 996 991 return 0;