diff options
| author | Zheng Wang <[email protected]> | 2023-06-15 20:12:21 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-15 07:30:43 -0600 |
| commit | 028ddcac477b691dd9205c92f991cc15259d033e (patch) | |
| tree | 2a41a9170410e3de2bb6112a036d8eeff1d07822 /tools/perf/scripts/python/gecko.py | |
| parent | ccb8c3bd6d93e7986b702d1f66d5d56d08abc59f (diff) | |
bcache: Remove unnecessary NULL point check in node allocations
Due to the previous fix of __bch_btree_node_alloc, the return value will
never be a NULL pointer. So IS_ERR is enough to handle the failure
situation. Fix it by replacing IS_ERR_OR_NULL check by an IS_ERR check.
Fixes: cafe56359144 ("bcache: A block layer cache")
Cc: [email protected]
Signed-off-by: Zheng Wang <[email protected]>
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/gecko.py')
0 files changed, 0 insertions, 0 deletions