flashrom: Change flashrom.c:map_flash_registers() from int to void.

The function exit()s on failure, and no callers check the return value.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3901 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Peter Stuge 2009-01-26 00:39:57 +00:00
parent 8dec57fe0c
commit 8c4421ddbd
2 changed files with 2 additions and 4 deletions

View File

@ -481,7 +481,7 @@ extern int verbose;
/* flashrom.c */ /* flashrom.c */
void mmap_errmsg(); void mmap_errmsg();
int map_flash_registers(struct flashchip *flash); void map_flash_registers(struct flashchip *flash);
/* layout.c */ /* layout.c */
int show_id(uint8_t *bios, int size, int force); int show_id(uint8_t *bios, int size, int force);

View File

@ -95,7 +95,7 @@ void mmap_errmsg()
} }
} }
int map_flash_registers(struct flashchip *flash) void map_flash_registers(struct flashchip *flash)
{ {
volatile uint8_t *registers; volatile uint8_t *registers;
size_t size = flash->total_size * 1024; size_t size = flash->total_size * 1024;
@ -109,8 +109,6 @@ int map_flash_registers(struct flashchip *flash)
exit(1); exit(1);
} }
flash->virtual_registers = registers; flash->virtual_registers = registers;
return 0;
} }
struct flashchip *probe_flash(struct flashchip *first_flash, int force) struct flashchip *probe_flash(struct flashchip *first_flash, int force)