Commit 22fb4ad8 authored by Xichao Zhao's avatar Xichao Zhao Committed by Dave Jiang
Browse files

cxl/hdm: Use str_plural() to simplify the code



Use the string choice helper function str_plural() to simplify the code.

Signed-off-by: default avatarXichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: default avatarAlison Schofield <alison.schofield@intel.com>
Reviewed-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20250811122519.543554-1-zhao.xichao@vivo.com


Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 8f5ae30d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}