cpu: imx: removed the tail '\n' of the CPU description
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 1 Aug 2024 03:59:52 +0000 (11:59 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 2 Aug 2024 18:16:51 +0000 (15:16 -0300)
Return CPU description string without newline character in the end.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
drivers/cpu/imx8_cpu.c

index 6a97b7b..b633a2c 100644 (file)
@@ -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;
 }