diff options
author | David Sterba <dsterba@suse.com> | 2017-01-20 17:41:55 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-01-25 09:47:56 +0100 |
commit | 4415ff6bcc3fbbe6f9c043fadc19989d772da835 (patch) | |
tree | 015dc43efe2af6319d27378b644b64ac4c1f97b8 /qgroup.c | |
parent | e135ee70b8cfaff4496effe9a58ecf5f5de33292 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |