From: Yu Watanabe Date: Sat, 6 Mar 2021 12:16:59 +0000 (+0900) Subject: udev: shorten code a bit X-Git-Tag: v249-rc1~315^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75b4984638750025c286809931f55ea50cc8289e;p=thirdparty%2Fsystemd.git udev: shorten code a bit --- diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 6bd95f25fb8..40a4130f8f1 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -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) {