Commit 423c9baa authored by Dave Jiang's avatar Dave Jiang

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: default avatarAlison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20240913223216.3234173-1-dave.jiang@intel.comSigned-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent b5209da3
...@@ -546,7 +546,7 @@ int cxl_query_cmd(struct cxl_memdev *cxlmd, ...@@ -546,7 +546,7 @@ int cxl_query_cmd(struct cxl_memdev *cxlmd,
return put_user(ARRAY_SIZE(cxl_mem_commands), &q->n_commands); 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. * structures.
*/ */
cxl_for_each_cmd(cmd) { cxl_for_each_cmd(cmd) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment