From 2f38503c61df6872905298513cfe52ff046aa76b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 14 May 2012 11:56:56 +0900 Subject: [PATCH] remove void statements --- src/flash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/flash.c b/src/flash.c index 31b2c1a..be47955 100644 --- a/src/flash.c +++ b/src/flash.c @@ -1,7 +1,7 @@ /* * flash.c -- Data Objects (DO) and GPG Key handling on Flash ROM * - * Copyright (C) 2010, 2011 Free Software Initiative of Japan + * Copyright (C) 2010, 2011, 2012 Free Software Initiative of Japan * Author: NIIBE Yutaka * * This file is a part of Gnuk, a GnuPG USB Token implementation. @@ -311,7 +311,6 @@ flash_do_write_internal (const uint8_t *p, int nr, const uint8_t *data, int len) hw = data[i*2] | 0xff00; if (flash_program_halfword (addr, hw) != FLASH_COMPLETE) flash_warning ("DO WRITE ERROR"); - addr += 2; } } @@ -369,7 +368,6 @@ flash_do_release (const uint8_t *do_data) { if (flash_program_halfword (addr, 0) != FLASH_COMPLETE) flash_warning ("fill-zero pad failure"); - addr += 2; } /* Fill 0x0000 for "tag_number and length" word */