From: Eryu Guan Date: Wed, 6 Nov 2013 10:49:12 +0000 (+0800) Subject: Btrfs-progs: set return value to 0 if subvolume get-default successfully X-Git-Tag: upstream/4.16.1~3054 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55d3729d4c26a9faa26176c2f73fb5ce2a0a558a;p=platform%2Fupstream%2Fbtrfs-progs.git Btrfs-progs: set return value to 0 if subvolume get-default successfully cmd_subvol_get_default() returns 1 even if finds default subvolume successfully. Set the correct return value. Signed-off-by: Eryu Guan Signed-off-by: Chris Mason --- diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 76dab1f..96fdcca 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -697,6 +697,7 @@ static int cmd_subvol_get_default(int argc, char **argv) /* no need to resolve roots if FS_TREE is default */ if (default_id == BTRFS_FS_TREE_OBJECTID) { printf("ID 5 (FS_TREE)\n"); + ret = 0; goto out; }