remove trailing whitespace
Change-Id: Ib91889a374515d36a2b12b53aeb12b6ea6e22732 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/364 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
committed by
Patrick Georgi
parent
784544b934
commit
5ff7c13e85
@@ -140,13 +140,13 @@ int main(int argc, char *argv[])
|
||||
fprintf(stderr, "Couldn't stat '%s'\n", nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_FILE].param);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if (fd_stat.st_size < 128) {
|
||||
lseek(fd, 127, SEEK_SET);
|
||||
write(fd, "\0", 1);
|
||||
fsync(fd);
|
||||
}
|
||||
|
||||
|
||||
cmos_default = mmap(NULL, 128, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
if (cmos_default == MAP_FAILED) {
|
||||
fprintf(stderr, "Couldn't map '%s'\n", nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_FILE].param);
|
||||
|
Reference in New Issue
Block a user