aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorColy Li <[email protected]>2023-11-20 13:25:03 +0800
committerJens Axboe <[email protected]>2023-11-20 09:17:51 -0700
commit3eba5e0b2422aec3c9e79822029599961fdcab97 (patch)
tree0515f82c8098a0673f0a989df944086c049ab97a /tools/perf/scripts/python/export-to-sqlite.py
parent31f5b956a197d4ec25c8a07cb3a2ab69d0c0b82f (diff)
bcache: avoid NULL checking to c->root in run_cache_set()
In run_cache_set() after c->root returned from bch_btree_node_get(), it is checked by IS_ERR_OR_NULL(). Indeed it is unncessary to check NULL because bch_btree_node_get() will not return NULL pointer to caller. This patch replaces IS_ERR_OR_NULL() by IS_ERR() for the above reason. Signed-off-by: Coly Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions