libxl: libxl_pvusb.c: Remove redundant lstat
authorChunyan Liu <cyliu@suse.com>
Thu, 7 Apr 2016 09:40:27 +0000 (17:40 +0800)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Apr 2016 16:48:59 +0000 (17:48 +0100)
commit086c1d1cc6191d8ac8cc70015207f046a4ba75a9
tree9d3408895e897f74660283ef10a49df2340cbe99
parent55374180d245d7dc1990a73b2351ac245da88fbc
libxl: libxl_pvusb.c: Remove redundant lstat

There is no harm in calling realpath, and we can handle ENOENT then.

CID: 1358112

Signed-off-by: Chunyan Liu <cyliu@suse.com>
CC: Simon Cao <caobosimon@gmail.com>
CC: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl_pvusb.c