fix-trailing-space-ethernet-mac.patch

There's no trailing space after the last mac address addition, it
was broken before the recent patch adding the second mac address.

Also, we don't need to add the first space by hand if it's unconditionally
added in the string afterwards.

Reported-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green authored and Andy Green committed 2009-02-20 04:57:47 +00:00
1 parent 0395c03c9d
commit 97b9bc018e
1 file changed
+1 -2
+1 -2
View File
@@ -605,11 +605,10 @@ char * append_device_specific_cmdline_gta02(char * cmdline)
cmdline += strlen(strcpy(cmdline, " g_ether.host_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
*cmdline++ += ' ' ;
bail:
this_kernel = real_kernel;