Skip to content

Commit 423c9ba

Browse files
committed
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>
1 parent b5209da commit 423c9ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cxl/core/mbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ int cxl_query_cmd(struct cxl_memdev *cxlmd,
546546
return put_user(ARRAY_SIZE(cxl_mem_commands), &q->n_commands);
547547

548548
/*
549-
* otherwise, return max(n_commands, total commands) cxl_command_info
549+
* otherwise, return min(n_commands, total commands) cxl_command_info
550550
* structures.
551551
*/
552552
cxl_for_each_cmd(cmd) {

0 commit comments

Comments
 (0)