aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2020-08-03 12:58:46 +0300
committerDavid Sterba <[email protected]>2020-10-07 12:06:57 +0200
commit1028d1c48b95c37336bed24a1dc1594e70aa67c6 (patch)
treea06a537dde32ffd33d70507ab0d1922405311109 /tools/perf/scripts/python/bin
parent0eb79294dbe328debae67961df28113141825d7b (diff)
btrfs: remove err variable from btrfs_get_extent
There's no practical reason too use 'err' as a variable to convey errors. In fact it's value is either set explicitly in the beginning of the function or it simply takes the value of 'ret'. Not conforming to the usual pattern of having ret be the only variable used to convey errors makes the code more error prone to bugs. In fact one such bug was introduced by 6bf9e4bd6a27 ("btrfs: inode: Verify inode mode toi avoid NULL pointer dereference") by assigning the error value to 'ret' and not 'err'. Let's fix that issue and make the function less tricky by leaving only ret to convey error values. Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions