summaryrefslogtreecommitdiff
path: root/drivers/cxl
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2024-09-14 01:32:16 +0300
committerDave Jiang <dave.jiang@intel.com>2024-09-19 01:29:29 +0300
commit423c9baae4c7fe73d5812e28610418fd2e8050bd (patch)
tree342e7b62b0085217e1a9ede4554fc98db08ffdf0 /drivers/cxl
parentb5209da36b19b573cf25fe7e698e3a45b0f40a75 (diff)
downloadlinux-423c9baae4c7fe73d5812e28610418fd2e8050bd.tar.xz
cxl: Fix comment regarding cxl_query_cmd() return data
The code indicates that the min of n_commands and total commands is returned. The comment incorrectly says it's the max(). Correct comment to min(). Reviewed-by: Alison Schofield <alison.schofield@intel.com> Link: https://patch.msgid.link/20240913223216.3234173-1-dave.jiang@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'drivers/cxl')
-rw-r--r--drivers/cxl/core/mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c
index 915a93ced78f..946f8e44455f 100644
--- a/drivers/cxl/core/mbox.c
+++ b/drivers/cxl/core/mbox.c
@@ -546,7 +546,7 @@ int cxl_query_cmd(struct cxl_memdev *cxlmd,
return put_user(ARRAY_SIZE(cxl_mem_commands), &q->n_commands);
/*
- * otherwise, return max(n_commands, total commands) cxl_command_info
+ * otherwise, return min(n_commands, total commands) cxl_command_info
* structures.
*/
cxl_for_each_cmd(cmd) {