chiark / gitweb /
treewide: another round of simplifications
[elogind.git] / src / locale / localectl.c
index a0df78ed6b9e0bbcdba6788df25c3851087be21d..58b8984bc8e87672307b1b51e5fb2ad61a74e636 100644 (file)
@@ -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;