nvme: simplify nvme_ctrlr_construct_admin_qpairs
Remove unnecessary local variables. Change-Id: Iddcbe24f0a704b6576c9139734258a27a6d272c6 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
d7dda8ec63
commit
18ce432337
@ -44,17 +44,11 @@ static void nvme_ctrlr_construct_and_submit_aer(struct nvme_controller *ctrlr,
|
||||
static int
|
||||
nvme_ctrlr_construct_admin_qpair(struct nvme_controller *ctrlr)
|
||||
{
|
||||
struct nvme_qpair *qpair;
|
||||
int rc;
|
||||
|
||||
qpair = &ctrlr->adminq;
|
||||
|
||||
rc = nvme_qpair_construct(qpair,
|
||||
0, /* qpair ID */
|
||||
NVME_ADMIN_ENTRIES,
|
||||
NVME_ADMIN_TRACKERS,
|
||||
ctrlr);
|
||||
return rc;
|
||||
return nvme_qpair_construct(&ctrlr->adminq,
|
||||
0, /* qpair ID */
|
||||
NVME_ADMIN_ENTRIES,
|
||||
NVME_ADMIN_TRACKERS,
|
||||
ctrlr);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user