summaryrefslogtreecommitdiff
path: root/send-stream.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-15 14:55:22 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-23 10:50:10 +0100
commitf9834e87d412282e4f7a7a81c04df7d91aa1652c (patch)
tree7f5721086432a4a5b67e174a0650dfa603c87c00 /send-stream.c
parent4c066138426be59c9f8c6956f4d02c941042c55c (diff)
btrfs-progs: send-stream: don't use single letter variable in tlv_get
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-stream.c')
-rw-r--r--send-stream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/send-stream.c b/send-stream.c
index 3720e7df..c8419ac3 100644
--- a/send-stream.c
+++ b/send-stream.c
@@ -158,7 +158,7 @@ out:
static int tlv_get(struct btrfs_send_stream *sctx, int attr, void **data, int *len)
{
int ret;
- struct btrfs_tlv_header *h;
+ struct btrfs_tlv_header *hdr;
if (attr <= 0 || attr > BTRFS_SEND_A_MAX) {
error("invalid attribute requested, attr = %d", attr);
@@ -166,15 +166,15 @@ static int tlv_get(struct btrfs_send_stream *sctx, int attr, void **data, int *l
goto out;
}
- h = sctx->cmd_attrs[attr];
- if (!h) {
+ hdr = sctx->cmd_attrs[attr];
+ if (!hdr) {
error("attribute %d requested but not present", attr);
ret = -ENOENT;
goto out;
}
- *len = le16_to_cpu(h->tlv_len);
- *data = h + 1;
+ *len = le16_to_cpu(hdr->tlv_len);
+ *data = hdr + 1;
ret = 0;