summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/at24rf08c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-10-03 22:19:16 +0200
committerMartin Roth <martinroth@google.com>2016-10-07 18:06:48 +0200
commit9b865b47b0670e4bb9ee57cafd6d37f7a20bcfd1 (patch)
treeb57ccc2de2ba2bdb7b25615898bb27d277f78bea /src/drivers/i2c/at24rf08c
parentec28aadbd1a182283f49dbf2fd57dd595b6cdc2a (diff)
downloadcoreboot-9b865b47b0670e4bb9ee57cafd6d37f7a20bcfd1.tar.xz
src/drivers: Remove whitespace after memcpy & memset
Change-Id: If79eb706b6d44f7c34dfe31a1545f5850870b334 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16866 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/drivers/i2c/at24rf08c')
-rw-r--r--src/drivers/i2c/at24rf08c/lenovo_serials.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c
index 881bf5327a..d0d006f8e5 100644
--- a/src/drivers/i2c/at24rf08c/lenovo_serials.c
+++ b/src/drivers/i2c/at24rf08c/lenovo_serials.c
@@ -104,7 +104,7 @@ const char *lenovo_mainboard_partnumber(void)
if (already_read)
return result;
- memset (result, 0, sizeof (result));
+ memset(result, 0, sizeof (result));
at24rf08c_read_string(0, 0x27, 7, result);
already_read = 1;
@@ -129,17 +129,17 @@ void smbios_mainboard_set_uuid(u8 *uuid)
if (already_read) {
- memcpy (uuid, result, 16);
+ memcpy(uuid, result, 16);
return;
}
- memset (result, 0, sizeof (result));
+ memset(result, 0, sizeof (result));
dev = dev_find_slot_on_smbus(1, 0x56);
if (dev == NULL) {
printk(BIOS_WARNING, "EEPROM not found\n");
already_read = 1;
- memset (uuid, 0, 16);
+ memset(uuid, 0, 16);
return;
}
@@ -155,7 +155,7 @@ void smbios_mainboard_set_uuid(u8 *uuid)
break;
}
if (t < 0) {
- memset (result, 0, sizeof (result));
+ memset(result, 0, sizeof (result));
break;
}
result[remap[i]] = t;
@@ -163,7 +163,7 @@ void smbios_mainboard_set_uuid(u8 *uuid)
already_read = 1;
- memcpy (uuid, result, 16);
+ memcpy(uuid, result, 16);
}
const char *smbios_mainboard_version(void)
@@ -176,7 +176,7 @@ const char *smbios_mainboard_version(void)
if (already_read)
return result;
- memset (result, 0, sizeof (result));
+ memset(result, 0, sizeof (result));
dev = at24rf08c_find_bank(2);
if (dev == NULL) {