Author: uwe Date: 2007-05-24 21:17:29 +0200 (Thu, 24 May 2007) New Revision: 2696
Modified: trunk/LinuxBIOSv2/util/flashrom/flashrom.c trunk/LinuxBIOSv2/util/flashrom/sharplhf00l04.c Log: Minor cosmetics (trivial).
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/LinuxBIOSv2/util/flashrom/flashrom.c =================================================================== --- trunk/LinuxBIOSv2/util/flashrom/flashrom.c 2007-05-24 18:44:50 UTC (rev 2695) +++ trunk/LinuxBIOSv2/util/flashrom/flashrom.c 2007-05-24 19:17:29 UTC (rev 2696) @@ -105,7 +105,7 @@ 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 @@ // //////////////////////////////////////////////////////////// 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;
Modified: trunk/LinuxBIOSv2/util/flashrom/sharplhf00l04.c =================================================================== --- trunk/LinuxBIOSv2/util/flashrom/sharplhf00l04.c 2007-05-24 18:44:50 UTC (rev 2695) +++ trunk/LinuxBIOSv2/util/flashrom/sharplhf00l04.c 2007-05-24 19:17:29 UTC (rev 2696) @@ -70,7 +70,7 @@
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);