Skip to content

Commit

Permalink
cpu: imx: removed the tail '\n' of the CPU description
Browse files Browse the repository at this point in the history
Return CPU description string without newline character in the end.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
  • Loading branch information
Zhiqiang-Hou authored and fabioestevam committed Aug 2, 2024
1 parent 37adedf commit b7ed741
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/cpu/imx8_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b7ed741

Please sign in to comment.