diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-01-20 09:14:34 -0500 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:52:51 -0400 |
commit | b3b06812e199f248561ce7824a4a8a9cd573c05a (patch) | |
tree | f2998ef366d6cba83823b362e932ade2602f32ff /drivers/block/nvme.c | |
parent | 3001082cac4bf6ffd09f72b39e6292ad6394ef17 (diff) | |
download | lwn-b3b06812e199f248561ce7824a4a8a9cd573c05a.tar.gz lwn-b3b06812e199f248561ce7824a4a8a9cd573c05a.zip |
NVMe: Reduce set_queue_count arguments by one
sq_count and cq_count are always the same, so just call it 'count'.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r-- | drivers/block/nvme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index b10e064795ed..7efd7e92b637 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c @@ -777,12 +777,12 @@ static void nvme_ns_free(struct nvme_ns *ns) kfree(ns); } -static int set_queue_count(struct nvme_dev *dev, int sq_count, int cq_count) +static int set_queue_count(struct nvme_dev *dev, int count) { int status; u32 result; struct nvme_command c; - u32 q_count = (sq_count - 1) | ((cq_count - 1) << 16); + u32 q_count = (count - 1) | ((count - 1) << 16); memset(&c, 0, sizeof(c)); c.features.opcode = nvme_admin_get_features; @@ -800,7 +800,7 @@ static int __devinit nvme_setup_io_queues(struct nvme_dev *dev) { int this_cpu; - set_queue_count(dev, 1, 1); + set_queue_count(dev, 1); this_cpu = get_cpu(); dev->queues[1] = nvme_create_queue(dev, 1, NVME_Q_DEPTH, this_cpu); |