]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: shorten code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Mar 2021 12:16:59 +0000 (21:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 30 Apr 2021 10:21:18 +0000 (19:21 +0900)
src/udev/udev-event.c

index 6bd95f25fb86dc860f66ae8e462f3255def352d9..40a4130f8f146d23dc769df563ff6110fdd76562 100644 (file)
@@ -1047,11 +1047,7 @@ int udev_event_execute_rules(
         /* Yes, we run update_devnode() twice, because in the first invocation, that is before update of udev database,
          * it could happen that two contenders are replacing each other's symlink. Hence we run it again to make sure
          * symlinks point to devices that claim them with the highest priority. */
-        r = update_devnode(event);
-        if (r < 0)
-                return r;
-
-        return 0;
+        return update_devnode(event);
 }
 
 void udev_event_execute_run(UdevEvent *event, usec_t timeout_usec, int timeout_signal) {