diff options
author | David Sterba <dsterba@suse.com> | 2016-01-12 11:20:18 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-12 15:02:55 +0100 |
commit | 633dc6f80f201afdf5b8524ae377187d58f0ef3b (patch) | |
tree | ca5b6375fb6910ac51eea8b89173c45390ce0355 /send-utils.c | |
parent | 374d67fdef869d2e2dfb9907d21c85ee6c19e1d7 (diff) |
btrfs-progs: remove unnecessary errno temp variables
We can read errno directly if it's not clobbered by any intermediate
calls.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-utils.c')
-rw-r--r-- | send-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/send-utils.c b/send-utils.c index 51f3d7b8..7dbb0b82 100644 --- a/send-utils.c +++ b/send-utils.c @@ -545,7 +545,6 @@ int subvol_uuid_search_init(int mnt_fd, struct subvol_uuid_search *s) int root_item_valid = 0; unsigned long off = 0; int i; - int e; char *path; s->mnt_fd = mnt_fd; @@ -579,10 +578,9 @@ int subvol_uuid_search_init(int mnt_fd, struct subvol_uuid_search *s) while (1) { ret = ioctl(mnt_fd, BTRFS_IOC_TREE_SEARCH, &args); - e = errno; if (ret < 0) { fprintf(stderr, "ERROR: can't perform the search - %s\n", - strerror(e)); + strerror(errno)); return ret; } if (sk->nr_items == 0) |