]> git.ipfire.org Git - thirdparty/systemd.git/commit
update-utmp: remove dead conditional 13820/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 18:58:18 +0000 (20:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 19:12:42 +0000 (21:12 +0200)
commitecfd9a990c4a59f68fb129bd932eec871119f4f6
tree640a8cd76bc9c9e8c9d05bb6cf49e7fe7b766350
parent7d895205eff0f29e14aad5733e4df62050dae8f1
update-utmp: remove dead conditional

Coverity was complaining that runlevel>0 is guaranteed at this point.
CID #1404262.

While at it, shorten the code a bit.
src/update-utmp/update-utmp.c