[PATCHv4 07/14] cpu: imx: removed the tail '\n' of the CPU description

Zhiqiang Hou Zhiqiang.Hou at nxp.com
Tue Jul 30 09:29:56 CEST 2024


From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>

Return CPU description string without newline character in the end.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
---
V4:
 - New patch.

 drivers/cpu/imx8_cpu.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 6a97b7b9ad..b633a2c73a 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -184,8 +184,6 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
 			ret = snprintf(buf, size, " - invalid sensor data");
 	}
 
-	snprintf(buf + ret, size - ret, "\n");
-
 	return 0;
 }
 
-- 
2.17.1



More information about the U-Boot mailing list