diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2025-11-09 01:17:45 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-11 17:57:05 +0300 |
| commit | 6b0a29933f688a284e8869da0f63a93acf893757 (patch) | |
| tree | af6c98fcd001c01aa160fca76c7a660059983c59 /scripts/patch-kernel | |
| parent | 86afb1cdc28f4332c6e0a1937244e0a80d4d63b1 (diff) | |
| download | linux-6b0a29933f688a284e8869da0f63a93acf893757.tar.xz | |
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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
