summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2018-07-30 13:22:06 +0200
committerTom Rini <trini@konsulko.com>2018-08-10 13:45:34 -0400
commit5113ff8a910406af0412e5618e87bdd55e07c97e (patch)
treee26eec3d11e6932913c17825e446b93ca8eb1bb5 /lib
parentfd15a9e2565f831bf95c2152d1966d068a642175 (diff)
downloadu-boot-5113ff8a910406af0412e5618e87bdd55e07c97e.tar.gz
u-boot-5113ff8a910406af0412e5618e87bdd55e07c97e.tar.xz
u-boot-5113ff8a910406af0412e5618e87bdd55e07c97e.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/smbios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index df3d26b071..40c921984c 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -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);
}