diff options
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r-- | src/locale/localectl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c index a0df78ed6b..58b8984bc8 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -401,10 +401,8 @@ static int list_x11_keymaps(sd_bus *bus, char **args, unsigned n) { } f = fopen("/usr/share/X11/xkb/rules/base.lst", "re"); - if (!f) { - log_error_errno(errno, "Failed to open keyboard mapping list. %m"); - return -errno; - } + if (!f) + return log_error_errno(errno, "Failed to open keyboard mapping list. %m"); if (streq(args[0], "list-x11-keymap-models")) look_for = MODELS; |