summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2024-08-01 11:59:52 +0800
committerFabio Estevam <festevam@gmail.com>2024-08-02 15:16:51 -0300
commitb7ed7418edb5378fb42a0e3744197b3d6a0383c8 (patch)
treebc20b7dd8ea9402e0888f4cc8e19076ddbf73bc2 /drivers
parent37adedfb2116ed28b49c2581baf0f7eae69b97e1 (diff)
downloadu-boot-b7ed7418edb5378fb42a0e3744197b3d6a0383c8.tar.gz
u-boot-b7ed7418edb5378fb42a0e3744197b3d6a0383c8.tar.bz2
u-boot-b7ed7418edb5378fb42a0e3744197b3d6a0383c8.zip
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 <Zhiqiang.Hou@nxp.com>
Diffstat (limited to 'drivers')
-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 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;
}