]> www.infradead.org Git - users/jedix/linux-maple.git/commit
genksyms: reduce the indentation in the for-loop in __add_symbol()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 3 Jan 2025 07:30:40 +0000 (16:30 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 14:01:22 +0000 (23:01 +0900)
commitf034d186bf9e2857079815e5490e2810a1a287a6
tree85b9e3fb4e8e01bf8575a976efc604ec22301a10
parentbe2fa44b5180a1f021efb40c55fdf63c249c3209
genksyms: reduce the indentation in the for-loop in __add_symbol()

To improve readability, reduce the indentation as follows:

  - Use 'continue' earlier when the symbol does not match

  - flip !sym->is_declared to flatten the if-else chain

No functional changes are intended.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/genksyms/genksyms.c