diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-28 13:18:09 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-28 21:34:50 +0100 |
commit | 3176084ff230afeb1d23d5647dd64ba4b7b982cc (patch) | |
tree | 87d2524af483c965247000dfa7217338e9eb5402 | |
parent | 2504834861416f62a41d5bf3a8f5fa42fd73d144 (diff) | |
download | systemd-3176084ff230afeb1d23d5647dd64ba4b7b982cc.tar.gz |
udev/collect: remove dead conditional
Coverity rightly says that 'word' is assigned to 'ptr', and 'word'
was assigned from 'ptr' (yikes) right after a non-null check.
-rw-r--r-- | src/udev/collect/collect.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/udev/collect/collect.c b/src/udev/collect/collect.c index 17e6616634..975842be4f 100644 --- a/src/udev/collect/collect.c +++ b/src/udev/collect/collect.c @@ -188,8 +188,6 @@ static int checkout(int fd) if (!ptr) ptr = word; - if (!ptr) - break; ptr -= len; } |