summaryrefslogtreecommitdiff
path: root/drivers/cpu
diff options
context:
space:
mode:
authorHou Zhiqiang <[email protected]>2024-08-01 11:59:52 +0800
committerFabio Estevam <[email protected]>2024-08-02 15:16:51 -0300
commitb7ed7418edb5378fb42a0e3744197b3d6a0383c8 (patch)
treebc20b7dd8ea9402e0888f4cc8e19076ddbf73bc2 /drivers/cpu
parent37adedfb2116ed28b49c2581baf0f7eae69b97e1 (diff)
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 <[email protected]>
Diffstat (limited to 'drivers/cpu')
-rw-r--r--drivers/cpu/imx8_cpu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 6a97b7b9ad0..b633a2c73a9 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;
}