1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-11-28 13:18:09 +01:00
parent 2504834861
commit 3176084ff2

View File

@ -188,8 +188,6 @@ static int checkout(int fd)
if (!ptr)
ptr = word;
if (!ptr)
break;
ptr -= len;
}