summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain "ythier" Hitier <sylvain.hitier@gmail.com>2011-07-04 07:27:17 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-07-04 07:27:17 +0000
commit83c52593b6d0c358cf0b103a23f450ddc3177cf2 (patch)
tree74cb86e64574522e5fd90e16c61c3403e3db9fa2
parent306fda08817b6aa8697780e4f6002e9b647fdf49 (diff)
downloadflashrom-83c52593b6d0c358cf0b103a23f450ddc3177cf2.zip
flashrom-83c52593b6d0c358cf0b103a23f450ddc3177cf2.tar.gz
Kill unused "log" argument of count_usable_erasers()
Corresponding to flashrom svn r1364. Signed-off-by: Sylvain "ythier" Hitier <sylvain.hitier@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-rw-r--r--flashrom.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/flashrom.c b/flashrom.c
index 12a51ad..d5892ca 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -713,9 +713,8 @@ char *extract_programmer_param(const char *param_name)
return extract_param(&programmer_param, param_name, ",");
}
-/* Returns the number of well-defined erasers for a chip.
- * The log parameter controls output. */
-static unsigned int count_usable_erasers(const struct flashchip *flash, int log)
+/* Returns the number of well-defined erasers for a chip. */
+static unsigned int count_usable_erasers(const struct flashchip *flash)
{
unsigned int usable_erasefunctions = 0;
int k;
@@ -1511,7 +1510,7 @@ int erase_and_write_flash(struct flashchip *flash, uint8_t *oldcontents, uint8_t
int k, ret = 0;
uint8_t *curcontents;
unsigned long size = flash->total_size * 1024;
- unsigned int usable_erasefunctions = count_usable_erasers(flash, 0);
+ unsigned int usable_erasefunctions = count_usable_erasers(flash);
msg_cinfo("Erasing and writing flash chip... ");
curcontents = (uint8_t *) malloc(size);
@@ -1831,7 +1830,7 @@ int chip_safety_check(struct flashchip *flash, int force, int read_it, int write
return 1;
msg_cerr("Continuing anyway.\n");
}
- if(count_usable_erasers(flash, 0) == 0) {
+ if(count_usable_erasers(flash) == 0) {
msg_cerr("flashrom has no erase function for this "
"flash chip.\n");
return 1;
OpenPOWER on IntegriCloud