diff mbox series

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

Message ID 20240801035959.43115-8-Zhiqiang.Hou@nxp.com
State Accepted
Commit b7ed7418edb5378fb42a0e3744197b3d6a0383c8
Delegated to: Fabio Estevam
Headers show
Series Add a subcommand 'release' to cmd/cpu.c | expand

Commit Message

Z.Q. Hou Aug. 1, 2024, 3:59 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Return CPU description string without newline character in the end.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
---
V5:
 - No change.

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

Patch

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;
 }