diff options
author | Xie Yongji <xieyongji@bytedance.com> | 2021-09-22 15:37:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-21 19:12:41 +0300 |
commit | 19f553db2ac03cb8407ec8efb8e140951afdfb87 (patch) | |
tree | 5fb3ed04ac8301be6ba5966a6fd30881d58af54c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e515be8f3b3e63be4c5e91dc6620483ed0990a0c (diff) | |
download | linux-19f553db2ac03cb8407ec8efb8e140951afdfb87.tar.xz |
loop: Remove the unnecessary bdev checks and unused bdev variable
The lo->lo_device can't be null if the lo->lo_backing_file is set.
So let's remove the unnecessary bdev checks and the entire bdev
variable in __loop_clr_fd() since the lo->lo_backing_file is already
checked before.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210922123711.187-4-xieyongji@bytedance.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