aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-03-13 14:25:39 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:54 +0000
commit5fbfb3f01d298077ce749a0381369202f456a9f7 (patch)
tree1ca64828d9e7a4dc71b2f81e08b65ac4be7e168c /drivers/fpga/tests/fpga-mgr-test.c
parentbtrfs: avoid unnecessary memory allocation and copy at overwrite_item() (diff)
downloadkernel-5fbfb3f01d298077ce749a0381369202f456a9f7.tar.gz
kernel-5fbfb3f01d298077ce749a0381369202f456a9f7.zip
btrfs: use variables to store extent buffer and slot at overwrite_item()
Instead of referring to path->nodes[0] and path->slots[0] multiple times, which is verbose and confusing since we have an 'eb' and 'slot' variables as well, introduce local variables 'dst_eb' to point to path->nodes[0] and 'dst_slot' to have path->slots[0], reducing verbosity and making it more obvious about which extent buffer and slot we are referring to. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions