9pfs: fix bogus fd check in local_remove()
commitb7361d46e75f12d8d943ca8d33ef82cafce39920
authorGreg Kurz <groug@kaod.org>
Mon, 6 Mar 2017 16:34:01 +0000 (6 17:34 +0100)
committerGreg Kurz <groug@kaod.org>
Mon, 6 Mar 2017 16:34:01 +0000 (6 17:34 +0100)
tree8361e686339dc6aced4763a98a603fbd56ab94fd
parent56b51708e9e22809d2a78f38d0ac84bb3f3fca92
9pfs: fix bogus fd check in local_remove()

This was spotted by Coverity as a fd leak. This is certainly true, but also
local_remove() would always return without doing anything, unless the fd is
zero, which is very unlikely.

(Coverity issue CID1371732)

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/9pfs/9p-local.c