]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 6a97b7b9ad0cc458bf33d8197d44e15f896e6cf6..b633a2c73a98d029df448fe540046f7a79431c75 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;
 }