mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
smbios: fix checkstyle error
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 <christian.gmeiner@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fd15a9e256
commit
5113ff8a91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue