scripts/checkpatch.pl: emit error when using assert(false)
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Thu, 19 Sep 2024 04:46:41 +0000 (21:46 -0700)
committerThomas Huth <thuth@redhat.com>
Wed, 25 Sep 2024 07:41:43 +0000 (09:41 +0200)
commit2540a551d395179f42844d29c866402329b89b7c
tree5c12f4d2396f90334d2580d49c251bb93969500e
parent98da252c3901cb2c52566284a2692fe262152fd3
scripts/checkpatch.pl: emit error when using assert(false)

This patch is part of a series that moves towards a consistent use of
g_assert_not_reached() rather than an ad hoc mix of different
assertion mechanisms.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20240919044641.386068-35-pierrick.bouvier@linaro.org>
[thuth: Split long line to avoid checkpatch error]
Signed-off-by: Thomas Huth <thuth@redhat.com>
scripts/checkpatch.pl