diff options
| author | Long Li <leo.lilong@huawei.com> | 2026-08-05 20:29:23 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-15 20:01:19 -0600 |
| commit | fe247030f1ce74e6bb917e219fe152270613073d (patch) | |
| tree | e84b89a80a159101dccbd6dbebe84049ede1b85b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1207dbb91c111e2422e94b2e75091367369e6476 (diff) | |
nbd: simplify find_fallback() by removing redundant logic
The second conditional checking nsock->fallback_index validity is the
logical inverse of the first, so drop it and let execution fall through
naturally. Consolidate the two identical dev_err_ratelimited() + return
paths into a single no_fallback label to reduce duplication.
Reviewed-by: Yu Kuai <yukuai@fygo.io>
Signed-off-by: Long Li <leo.lilong@huawei.com>
Link: https://patch.msgid.link/20260805122930.57647-2-yangerkun@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
