aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-11-21 13:38:39 +0000
committerDavid Sterba <[email protected]>2023-12-15 20:27:02 +0100
commit71fca47b644910485c49d1da31bc963cf286fe77 (patch)
tree2369b3cde53f7bfd547283224b2e4e0e7c097264 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
parent7dc66abb5a47778d7db327783a0ba172b8cff0b5 (diff)
btrfs: remove stripe size local variable from insert_dev_extents()
It's not needed to have a local variable to store the stripe size at insert_dev_extents(), we can just take from the chunk map as it's only used once and typing 'map->stripe_size' is not much more verbose than simply typing 'stripe_size'. So remove the local variable. This was added before the recent addition of a dedicated structure for chunk mappings because the stripe size was encoded in the 'orig_block_len' field of an extent_map structure, so the use of the local variable made things more readable. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions