]> git.ipfire.org Git - thirdparty/linux.git/commit
ptp: Simplify ptp_read()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Jun 2025 11:52:39 +0000 (13:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jun 2025 00:54:07 +0000 (17:54 -0700)
commitb66d28142dc43f25555b8c1321353ab4b1eccf8d
tree77cb988856340c4da84f1f3a439e6a5faedc8934
parent4838bc9e279c566692ee20d241c71626d71240f9
ptp: Simplify ptp_read()

The mixture of gotos and direct return codes is inconsistent and just makes
the code harder to read. Let it consistently return error codes directly and
tidy the code flow up accordingly.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20250625115133.486953538@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_chardev.c