summaryrefslogtreecommitdiff
path: root/qgroup.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-20 17:41:55 +0100
committerDavid Sterba <dsterba@suse.com>2017-01-25 09:47:56 +0100
commit4415ff6bcc3fbbe6f9c043fadc19989d772da835 (patch)
tree015dc43efe2af6319d27378b644b64ac4c1f97b8 /qgroup.c
parente135ee70b8cfaff4496effe9a58ecf5f5de33292 (diff)
btrfs-progs: qgroups show: clean up errno passing
We should use return value for errors, not errno. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'qgroup.c')
-rw-r--r--qgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qgroup.c b/qgroup.c
index 071d15ed..21526cec 100644
--- a/qgroup.c
+++ b/qgroup.c
@@ -1067,7 +1067,7 @@ static int __qgroups_search(int fd, struct qgroup_lookup *qgroup_lookup)
if (ret < 0) {
error("cannot perform the search: %s",
strerror(errno));
- return ret;
+ return -errno;
}
/* the ioctl returns the number of item it found in nr_items */
if (sk->nr_items == 0)