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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent b5209da commit 423c9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)