]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/kbd-util: simplify error handling in keymap_exists()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Aug 2023 08:02:34 +0000 (10:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Aug 2023 10:52:56 +0000 (12:52 +0200)
commit7d01eb35dc155d2cb183d08fa72705488e69967c
tree94369539da57b563fee9fe242110f1a72e47ae8c
parentbb44fd073402cdfdbf2dfee549708a93c7c73aaf
shared/kbd-util: simplify error handling in keymap_exists()

Once we know the return value, we can just return it, no need to
exit the loop.
src/shared/kbd-util.c