]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/collect: remove dead conditional
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Nov 2017 12:18:09 +0000 (13:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Nov 2017 20:34:50 +0000 (21:34 +0100)
Coverity rightly says that 'word' is assigned to 'ptr', and 'word'
was assigned from 'ptr' (yikes) right after a non-null check.

src/udev/collect/collect.c

index 17e66166343ba6b64f86f93405dc41aadd85d67b..975842be4fc0a08e24e877ffe37a85fc3d647b90 100644 (file)
@@ -188,8 +188,6 @@ static int checkout(int fd)
 
                 if (!ptr)
                         ptr = word;
-                if (!ptr)
-                        break;
                 ptr -= len;
         }