]> www.infradead.org Git - users/hch/misc.git/commit
lib: checksum: use ARRAY_SIZE() to improve assert_setup_correct()
authorThorsten Blum <thorsten.blum@toblux.com>
Fri, 26 Jul 2024 15:49:46 +0000 (17:49 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:30 +0000 (20:43 -0700)
commitb6e21b71208f289a796d786bd695ec25eae4ed9a
treedc235db316582280136d583b4f409794495aa096
parent9a42bfd255b288dad2d1a9df0a1fe58394d5da12
lib: checksum: use ARRAY_SIZE() to improve assert_setup_correct()

Use ARRAY_SIZE() to simplify the assert_setup_correct() function and
improve its readability.

Link: https://lkml.kernel.org/r/20240726154946.230928-1-thorsten.blum@toblux.com
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/checksum_kunit.c