From 8c4421ddbdd6f4fec3de2fa431d42f0421a758d1 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Mon, 26 Jan 2009 00:39:57 +0000 Subject: [PATCH] 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 Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3901 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/flash.h | 2 +- util/flashrom/flashrom.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index 00b4c808e9..a2ff9129da 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/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); diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index 4d8614a33a..eb0d8e0fd9 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -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)