Commit 0375c81
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>1 parent fc71f40 commit 0375c81
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4834 | 4834 | | |
4835 | 4835 | | |
4836 | 4836 | | |
4837 | | - | |
4838 | 4837 | | |
4839 | 4838 | | |
4840 | 4839 | | |
| |||
4861 | 4860 | | |
4862 | 4861 | | |
4863 | 4862 | | |
4864 | | - | |
| 4863 | + | |
4865 | 4864 | | |
4866 | 4865 | | |
4867 | 4866 | | |
| |||
0 commit comments