btrfs-progs: don't close(-1)
authorZach Brown <zab@redhat.com>
Tue, 22 Jan 2013 01:11:28 +0000 (17:11 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:39 +0000 (16:09 -0800)
commitac59571f59d1d87b9c7d2cab8cf8d54f578d639e
tree8436abe295effd5c02a45cd7d9f06e37f26a52be
parentda3a185f445957787db25a4a33e8992e634e2c37
btrfs-progs: don't close(-1)

When opening the fd fails just return instead of taking the shared error
path that tries to close() the fd.

Signed-off-by: Zach Brown <zab@redhat.com>
mkfs.c