From 3176084ff230afeb1d23d5647dd64ba4b7b982cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 28 Nov 2017 13:18:09 +0100 Subject: [PATCH] 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. --- src/udev/collect/collect.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/udev/collect/collect.c b/src/udev/collect/collect.c index 17e66166343..975842be4fc 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; } -- 2.39.2