summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNilay Shroff <nilay@linux.ibm.com>2025-03-13 14:51:51 +0300
committerJens Axboe <axboe@kernel.dk>2025-03-13 16:23:14 +0300
commit78800f5997d8ae0f20d4aced66a524f0f2fc4c7f (patch)
tree2c9eb2767a212424d413ecd96dd05906c314160a /tools/perf/scripts/python/stackcollapse.py
parenta3996d11f3ab743e6cc4e3529ce9459c2cd27139 (diff)
downloadlinux-78800f5997d8ae0f20d4aced66a524f0f2fc4c7f.tar.xz
block: remove unnecessary goto labels in debugfs attribute read methods
In some debugfs attribute read methods, failure to acquire the mutex lock results in jumping to a label before returning an error code. However this is unnecessary, as we can return the failure code directly, improving code readability and reducing complexity. This commit removes the goto labels and ensures that the method returns immediately upon failing to acquire the mutex lock. Signed-off-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20250313115235.3707600-3-nilay@linux.ibm.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions