summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-28 13:18:09 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-28 21:34:50 +0100
commit3176084ff230afeb1d23d5647dd64ba4b7b982cc (patch)
tree87d2524af483c965247000dfa7217338e9eb5402
parent2504834861416f62a41d5bf3a8f5fa42fd73d144 (diff)
downloadsystemd-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.c2
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;
}