]> git.ipfire.org Git - thirdparty/linux.git/commit
block/partitions/acorn: use min in {riscix,linux}_partition
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Jun 2026 16:07:57 +0000 (18:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Jun 2026 17:14:52 +0000 (11:14 -0600)
commitaa528cd12ca6e7fda15f855b6d2095fd34d167e0
tree9fa76b40ba5af123ce136fdde3b089a56b675953
parent6636e16e60e9f6ac09bf2faf88bce0c5cde7d83c
block/partitions/acorn: use min in {riscix,linux}_partition

Use min() to replace the open-coded implementations and to simplify
riscix_partition() and linux_partition().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20260602160757.973736-3-thorsten.blum@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/acorn.c