btrfs-progs: close fd on cmd_subvol_get_default return
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:46 +0000 (16:54 -0600)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:56 +0000 (14:39 +0100)
commite54ba43cdedcd8754c5f6036db21bb379e0914b9
treee48aa55b216fc8ba5cd482573395d9ecd169e7e7
parent1b12f5c9f7696f02ea6cbe8779bcaf28e90f9dba
btrfs-progs: close fd on cmd_subvol_get_default return

Without this we leak the fd when we return from the
function.

Also, remove the senseless random return values.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-subvolume.c