Use bitwise OR instead of logical OR when constructing value for
SET_FEATURES/NUMBER_OF_QUEUES command. Sponsored by: Intel MFC after: 3 days
This commit is contained in:
parent
f07894dbde
commit
2efb5fb1ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267342
@ -205,7 +205,7 @@ nvme_ctrlr_cmd_set_num_queues(struct nvme_controller *ctrlr,
|
||||
{
|
||||
uint32_t cdw11;
|
||||
|
||||
cdw11 = ((num_queues - 1) << 16) || (num_queues - 1);
|
||||
cdw11 = ((num_queues - 1) << 16) | (num_queues - 1);
|
||||
nvme_ctrlr_cmd_set_feature(ctrlr, NVME_FEAT_NUMBER_OF_QUEUES, cdw11,
|
||||
NULL, 0, cb_fn, cb_arg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user