]> Gentwo Git Trees - linux/.git/commit
ptp: ocp: Apply standard pattern for cleaning up loop
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Nov 2025 08:45:47 +0000 (09:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 03:17:21 +0000 (19:17 -0800)
commit4c84a5c7b095ea52e65ace483177fce23e55fa8f
tree2f5d37ffc7174c2c216ca137435bd96430ad627e
parent590f5d1fa6ee22b1ec07283d5fa870326f47b2f6
ptp: ocp: Apply standard pattern for cleaning up loop

The while (i--) is a standard pattern for the cleaning up loops.
Apply this pattern where it makes sense in the driver.

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251124084816.205035-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c