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 df3d26b..40c9219 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);
        }