]> www.infradead.org Git - users/dwmw2/linux.git/commit
ptp: fc3: remove redundant check on variable ret
authorColin Ian King <colin.i.king@gmail.com>
Thu, 31 Oct 2024 13:50:42 +0000 (13:50 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 Nov 2024 20:54:42 +0000 (12:54 -0800)
commit5c87206cdb537f67c51f3f9a229258dce77d9a23
tree22574fa4e58be7fc03db84564197c983bc66bec3
parent2e570cd187e3b5c8e56627523e0c12e2ffc4745f
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>
drivers/ptp/ptp_fc3.c