]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: led-test: Remove standard error checking after KUNIT_ASSERT_*()
authorLee Jones <lee@kernel.org>
Thu, 1 May 2025 08:19:11 +0000 (09:19 +0100)
committerLee Jones <lee@kernel.org>
Wed, 14 May 2025 08:25:05 +0000 (09:25 +0100)
commit1d7f25483c8791f395dd857cce8a6a65bcfa295f
tree2a12031829821f02f717532fa3ecc2fa3e85779f
parentb441b95a592c42f8448f9bd912b91e1e9b4262ff
leds: led-test: Remove standard error checking after KUNIT_ASSERT_*()

If a KUNIT_ASSERT_*() call ends up in an assertion, the test is marked
as a failure and the subsequent error checking is never executed, making
it superfluous.  Remove it for simplicity and to avoid confusion.

Link: https://lore.kernel.org/r/20250501081918.3621432-1-lee@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-test.c