From: Lennart Poettering Date: Tue, 22 Sep 2020 09:21:19 +0000 (+0200) Subject: shutdown: don't compare pointers with 0 X-Git-Tag: v247-rc1~182^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a269c4ee34a4fc98f2407996cc6bda82f3e03bf;p=thirdparty%2Fsystemd.git shutdown: don't compare pointers with 0 --- diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index 307944c6575..43544857283 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -474,11 +474,11 @@ static int delete_dm(dev_t devnum) { } static int delete_md(MountPoint *m) { - _cleanup_close_ int fd = -1; + assert(m); assert(major(m->devnum) != 0); - assert(m->path != 0); + assert(m->path); fd = open(m->path, O_RDONLY|O_CLOEXEC|O_EXCL); if (fd < 0)