btrfs-progs: qgroup: cleanup __qgroup_search
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Mon, 13 Nov 2017 05:33:16 +0000 (13:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jan 2018 18:22:46 +0000 (19:22 +0100)
commitb114f7b537972566ff9d3d3fb2ffd87e8b441a81
tree4bb08009db1c09bce7bdcca6e246165c71a505ea
parentf0445b8a344b496e6c070c733e445bf79a8fad58
btrfs-progs: qgroup: cleanup __qgroup_search

Replace the if statement with the switch statement, and return the
appropriate value for the future use rather than directly exit.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
qgroup.c