chiark / gitweb /
util: remove a unnecessary check
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 16 Sep 2014 20:58:35 +0000 (22:58 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 16 Sep 2014 21:03:50 +0000 (23:03 +0200)
commit42646a8bf24be2c9280554c9d8540c67c835b3c4
treebb7e126795f87a1d9df04519966aa85b3f3ecafa
parent1164e944d9689c3e94c100a634fb5a404662e247
util: remove a unnecessary check

We only break out of the previous loop if fd >= 0 so there is no
use in checking it again.

Found by coverity. Fixes: CID#1237577
src/shared/util.c