]> xenbits.xensource.com Git - libvirt.git/commit
util: remove dead code inside virstoragefile
authorJulio Faracco <jcfaracco@gmail.com>
Fri, 2 Jun 2017 01:56:09 +0000 (22:56 -0300)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Jun 2017 07:39:10 +0000 (09:39 +0200)
commit4fd5c2fbce8306d8d6fb2b7b0803a413d15da0b5
treec0af0f62f1ba186088fbef1e0855ac3c9870fdf8
parent54aee01d876ad3d331ead6ea0a574a1326faae32
util: remove dead code inside virstoragefile

The host address or the socket path have already been checked at the
begining of the function virStorageSourceParseNBDColonString(). So,
when the parameter is not a unix socket, there is no reason to check
the address again because if it does not exists, the logic will fail
in the first IF conditional.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
src/util/virstoragefile.c