diff options
| author | Maurizio Lombardi <mlombard@redhat.com> | 2026-02-20 14:30:16 +0100 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-03-10 08:20:29 -0700 |
| commit | 0375c81eb2256366cd9602441d48b8b937e79635 (patch) | |
| tree | 0eaa80e675403dd15d6facb598659ea406e8319e /include | |
| parent | fc71f409b22ca831a9f87a2712eaa09ef2bb4a5e (diff) | |
nvme-core: do not pass empty queue_limits to blk_mq_alloc_queue()
In nvme_alloc_admin_tag_set(), an empty queue_limits struct is
currently allocated on the stack and passed by reference to
blk_mq_alloc_queue().
This is redundant because blk_mq_alloc_queue() already handles
a NULL limits pointer by internally substituting it with a default
empty queue_limits struct.
Remove the unnecessary local variable and pass a NULL value.
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
