projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5209da
)
cxl: Fix comment regarding cxl_query_cmd() return data
author
Dave Jiang
<dave.jiang@intel.com>
Fri, 13 Sep 2024 22:32:16 +0000
(15:32 -0700)
committer
Dave Jiang
<dave.jiang@intel.com>
Wed, 18 Sep 2024 22:29:29 +0000
(15:29 -0700)
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>
drivers/cxl/core/mbox.c
patch
|
blob
|
history
diff --git
a/drivers/cxl/core/mbox.c
b/drivers/cxl/core/mbox.c
index
915a93c
..
946f8e4
100644
(file)
--- 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 m
ax
(n_commands, total commands) cxl_command_info
+ * otherwise, return m
in
(n_commands, total commands) cxl_command_info
* structures.
*/
cxl_for_each_cmd(cmd) {