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:
Jim Harris 2014-06-10 21:40:43 +00:00
parent f07894dbde
commit 2efb5fb1ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267342

View File

@ -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);
}