summaryrefslogtreecommitdiff
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorLukas Bulwahn <lukas.bulwahn@gmail.com>2021-12-23 15:53:00 +0300
committerJens Axboe <axboe@kernel.dk>2021-12-23 17:10:07 +0300
commit669a064625fa3a06ddf8a4ac1f35b7436b99f133 (patch)
treeeaa0dae6d7942bf3efe8d7cde95b20ac2e52867b /include/linux/blk-mq.h
parenta16c7246368db8935652c805bc446928d0e1c0aa (diff)
downloadlinux-669a064625fa3a06ddf8a4ac1f35b7436b99f133.tar.xz
block: drop needless assignment in set_task_ioprio()
Commit 5fc11eebb4a9 ("block: open code create_task_io_context in set_task_ioprio") introduces a needless assignment 'ioc = task->io_context', as the local variable ioc is not further used before returning. Even after the further fix, commit a957b61254a7 ("block: fix error in handling dead task for ioprio setting"), the assignment still remains needless. Drop this needless assignment in set_task_ioprio(). This code smell was identified with 'make clang-analyzer'. Fixes: 5fc11eebb4a9 ("block: open code create_task_io_context in set_task_ioprio") Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211223125300.20691-1-lukas.bulwahn@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-mq.h')
0 files changed, 0 insertions, 0 deletions