From b7ed7418edb5378fb42a0e3744197b3d6a0383c8 Mon Sep 17 00:00:00 2001 From: Hou Zhiqiang Date: Thu, 1 Aug 2024 11:59:52 +0800 Subject: [PATCH] cpu: imx: removed the tail '\n' of the CPU description Return CPU description string without newline character in the end. Signed-off-by: Hou Zhiqiang --- 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.39.5