]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smbios: fix checkstyle error
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 30 Jul 2018 11:22:06 +0000 (13:22 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 10 Aug 2018 17:45:34 +0000 (13:45 -0400)
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>
lib/smbios.c

index df3d26b07107088d7bee64897d5c677b4f3592ed..40c921984c9dffca851f8b1077f7d90ee3b0f32e 100644 (file)
@@ -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);
        }