diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2025-11-08 15:17:45 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-11 07:57:05 -0700 |
| commit | 6b0a29933f688a284e8869da0f63a93acf893757 (patch) | |
| tree | af6c98fcd001c01aa160fca76c7a660059983c59 /tools/lib/python/kdoc/kdoc_files.py | |
| parent | 86afb1cdc28f4332c6e0a1937244e0a80d4d63b1 (diff) | |
ublk: remove unnecessary checks in ublk_check_and_get_req()
ub = iocb->ki_filp->private_data cannot be NULL, as it's set in
ublk_ch_open() before it returns succesfully. req->mq_hctx cannot be
NULL as any inflight ublk request must belong to some queue. And
req->mq_hctx->driver_data cannot be NULL as it's set to the ublk_queue
pointer in ublk_init_hctx(). So drop the unnecessary checks.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
