block/nvme: Use definitions instead of magic values in add_io_queue()
commit76a24781cc82d99251f933c399d78af52e1d9b0e
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 29 Oct 2020 09:32:54 +0000 (29 10:32 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Nov 2020 19:06:21 +0000 (3 19:06 +0000)
treeca25a05a2e7b277c0643bb74b86f6bbb77f6126b
parent54248d4d73ddbce38e240056dacf582f92da872d
block/nvme: Use definitions instead of magic values in add_io_queue()

Replace magic values by definitions, and simplifiy since the
number of queues will never reach 64K.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201029093306.1063879-14-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
block/nvme.c