summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@google.com>2011-05-18 01:30:56 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-18 01:30:56 +0000
commit77f931a530596e34c6f8adbd60d49a75bf555adc (patch)
tree7c1e54ffa97f51f18fca3b68079fc355b850ecc5
parent9df880fdaf394bcc933cfd5e19e214f42f1e63b5 (diff)
downloadflashrom-77f931a530596e34c6f8adbd60d49a75bf555adc.tar.gz
flashrom-77f931a530596e34c6f8adbd60d49a75bf555adc.tar.bz2
flashrom-77f931a530596e34c6f8adbd60d49a75bf555adc.zip
Remove filename parameter from chip_safety_check()
Corresponding to flashrom svn r1302. Signed-off-by: David Hendricks <dhendrix@google.com> Acked-by: Stefan Reinauer <stepan@coreboot.org>
-rw-r--r--flashrom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c
index 0e9433bfd..79d55b6e1 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1772,7 +1772,7 @@ int main(int argc, char *argv[])
/* FIXME: This function signature needs to be improved once doit() has a better
* function signature.
*/
-int chip_safety_check(struct flashchip *flash, int force, char *filename, int read_it, int write_it, int erase_it, int verify_it)
+int chip_safety_check(struct flashchip *flash, int force, int read_it, int write_it, int erase_it, int verify_it)
{
if (!programmer_may_write && (write_it || erase_it)) {
msg_perr("Write/erase is not working yet on your programmer in "
@@ -1836,7 +1836,7 @@ int doit(struct flashchip *flash, int force, char *filename, int read_it, int wr
int ret = 0;
unsigned long size = flash->total_size * 1024;
- if (chip_safety_check(flash, force, filename, read_it, write_it, erase_it, verify_it)) {
+ if (chip_safety_check(flash, force, read_it, write_it, erase_it, verify_it)) {
msg_cerr("Aborting.\n");
ret = 1;
goto out_nofree;