mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 23:43:42 +02:00
Change flashrom.c:map_flash_registers() from int to void
The function exit()s on failure, and no callers check the return value. Corresponding to flashrom svn r396 and coreboot v2 svn r3901. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
parent
a0d75a07b4
commit
776d2021fd
2
flash.h
2
flash.h
@ -481,7 +481,7 @@ extern int verbose;
|
||||
|
||||
/* flashrom.c */
|
||||
void mmap_errmsg();
|
||||
int map_flash_registers(struct flashchip *flash);
|
||||
void map_flash_registers(struct flashchip *flash);
|
||||
|
||||
/* layout.c */
|
||||
int show_id(uint8_t *bios, int size, int force);
|
||||
|
@ -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;
|
||||
size_t size = flash->total_size * 1024;
|
||||
@ -109,8 +109,6 @@ int map_flash_registers(struct flashchip *flash)
|
||||
exit(1);
|
||||
}
|
||||
flash->virtual_registers = registers;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct flashchip *probe_flash(struct flashchip *first_flash, int force)
|
||||
|
Loading…
x
Reference in New Issue
Block a user