mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
cxl/hdm: Use str_plural() to simplify the code
Use the string choice helper function str_plural() to simplify the code. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20250811122519.543554-1-zhao.xichao@vivo.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
This commit is contained in:
parent
8f5ae30d69
commit
22fb4ad898
|
|
@ -197,7 +197,7 @@ struct cxl_hdm *devm_cxl_setup_hdm(struct cxl_port *port,
|
|||
*/
|
||||
if (should_emulate_decoders(info)) {
|
||||
dev_dbg(dev, "Fallback map %d range register%s\n", info->ranges,
|
||||
info->ranges > 1 ? "s" : "");
|
||||
str_plural(info->ranges));
|
||||
cxlhdm->decoder_count = info->ranges;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user