Skip to content
Snippets Groups Projects
Commit a6eb6769 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Drop leading spaces in cpu_x86_get_desc()


The Intel CPU name can have leading spaces. Remove them since they are not
useful.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent f6c1df44
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,14 @@ int cpu_x86_get_vendor(struct udevice *dev, char *buf, int size)
int cpu_x86_get_desc(struct udevice *dev, char *buf, int size)
{
char *ptr;
if (size < CPU_MAX_NAME_LEN)
return -ENOSPC;
cpu_get_name(buf);
ptr = cpu_get_name(buf);
if (ptr != buf)
strcpy(buf, ptr);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment