smbios: fix checkstyle error
PATCH 1/2 smbios: fix checkstyle error
Fixes the following chechpatch -f error:
ERROR: "(foo*)" should be "(foo *)"
+ strncpy((char*)t->uuid, serial_str, sizeof(t->uuid));
--- lib/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/smbios.c +1 -1
@@ -116,7 +116,7 @@ static int smbios_write_type1(ulong *current, int handle) t->manufacturer =smbios_add_string (t->eos,CONFIG_SMBIOS_MANUFACTURER ); t->product_name =smbios_add_string (t->eos,CONFIG_SMBIOS_PRODUCT_NAME );if (serial_str) { -strncpy ((char *)t->uuid, serial_str,sizeof (t->uuid)); +strncpy ((char *)t->uuid, serial_str,sizeof (t->uuid)); t->serial_number =smbios_add_string (t->eos, serial_str); }
Signature · 1 line
2.17.1
PATCH 2/2 smbios: fix checkstyle warning
Fixes the following checkstyle warning:
WARNING: Missing a blank line after declarations
+ int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++);
+ max_struct_size = max(max_struct_size, tmp);
--- lib/smbios.c | 1 + 1 file changed, 1 insertion(+)
lib/smbios.c +1 -0
@@ -278,6 +278,7 @@ ulong write_smbios_table(ulong addr)/* populate minimum required tables */ for (i =0 ; i <ARRAY_SIZE (smbios_write_funcs); i++) {int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); + max_struct_size =max (max_struct_size, tmp); len += tmp; }
Signature · 1 line
2.17.1
PATCH 2/2 smbios: fix checkstyle warning
Quoted 10 lines · Christian Gmeiner
Fixes the following checkstyle warning:
WARNING: Missing a blank line after declarations
(quoted diff) +2
-0+ int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); + max_struct_size = max(max_struct_size, tmp);Signed-off-by Christian Gmeiner <[email protected]>--- lib/smbios.c | 1 + 1 file changed, 1 insertion(+)
PATCH 2/2 smbios: fix checkstyle warning
In reply to Christian GmeinerQuoted 8 lines · Christian Gmeiner
Fixes the following checkstyle warning:
WARNING: Missing a blank line after declarations
(quoted diff) +2
-0+ int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++); + max_struct_size = max(max_struct_size, tmp);Signed-off-by Christian Gmeiner <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180810/5b70be85/attachment.sig>
PATCH 1/2 smbios: fix checkstyle error
In reply to Christian GmeinerQuoted 9 lines · Christian Gmeiner
Fixes the following chechpatch -f error:
ERROR: "(foo*)" should be "(foo *)"
+strncpy((char*)t->uuid, serial_str, sizeof(t->uuid));Signed-off-by Christian Gmeiner <[email protected]>--- lib/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 1/2 smbios: fix checkstyle error
In reply to Christian GmeinerQuoted 7 lines · Christian Gmeiner
Fixes the following chechpatch -f error:
ERROR: "(foo*)" should be "(foo *)"
+strncpy((char*)t->uuid, serial_str, sizeof(t->uuid));Signed-off-by Christian Gmeiner <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180810/782b2433/attachment.sig>