summaryrefslogtreecommitdiff
path: root/util/flashrom
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-05-24 19:17:29 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-05-24 19:17:29 +0000
commitda0eec07fbd5e56a95b54e11d5356aa59b486d95 (patch)
tree6a474284c1861de8ae0b6cc393ebb7553c45ae4e /util/flashrom
parent4adc7421f5b7c175c34f87d939309034f701d62c (diff)
downloadcoreboot-da0eec07fbd5e56a95b54e11d5356aa59b486d95.tar.xz
Minor cosmetics (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2696 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom')
-rw-r--r--util/flashrom/flashrom.c5
-rw-r--r--util/flashrom/sharplhf00l04.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c
index 8ada918a68..751c19c384 100644
--- a/util/flashrom/flashrom.c
+++ b/util/flashrom/flashrom.c
@@ -105,7 +105,7 @@ int map_flash_registers(struct flashchip *flash)
size_t size = flash->total_size * 1024;
registers = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
+ fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
if (registers == MAP_FAILED) {
perror("Can't mmap registers using " MEM_DEV);
@@ -448,7 +448,8 @@ int main(int argc, char *argv[])
// ////////////////////////////////////////////////////////////
if (exclude_end_position - exclude_start_position > 0)
memcpy(buf + exclude_start_position,
- (const char *)flash->virtual_memory + exclude_start_position,
+ (const char *)flash->virtual_memory +
+ exclude_start_position,
exclude_end_position - exclude_start_position);
exclude_start_page = exclude_start_position / flash->page_size;
diff --git a/util/flashrom/sharplhf00l04.c b/util/flashrom/sharplhf00l04.c
index 0eacd38577..61021d30ac 100644
--- a/util/flashrom/sharplhf00l04.c
+++ b/util/flashrom/sharplhf00l04.c
@@ -70,7 +70,7 @@ int probe_lhf00l04(struct flashchip *flash)
printf_debug("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2);
- if (id1 != flash->manufacture_id || id2 != flash->model_id)
+ if (id1 != flash->manufacture_id || id2 != flash->model_id)
return 0;
map_flash_registers(flash);