btrfs-progs: mkfs: avoid positive return value from cleanup_temp_chunks
commita00bfc200ccfd27fe2f2bc1d0cd92b81a7bba06f
authorQu Wenruo <wqu@suse.com>
Thu, 19 Oct 2017 05:41:34 +0000 (19 13:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:00 +0000 (14 15:59 +0100)
treee194f227a127478f692a90dfb6a4551ceeb7a336
parent66e485873cf21e03cee5fe59b5dce807d2ac53ea
btrfs-progs: mkfs: avoid positive return value from cleanup_temp_chunks

Since we're calling btrfs_search_slot() the return value can be
positive.  However we just pass that return value out, causing undefined
return value.

This can cause mkfs to return 1, which indicates something wrong.

Fix it.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
mkfs/main.c