diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-01-24 17:19:19 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-01-24 17:19:19 +0100 |
commit | a66e360f87ce5786b8ff159f49ab5cc77b10760b (patch) | |
tree | 088d9cbc2da4cab49987594c276ac0d04981b6ab /hw/pflash_cfi01.c | |
parent | 2548de3a343e893afcd7aceb824ea4a7137e6f31 (diff) |
pflash: Remove dead code, no functional changes.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r-- | hw/pflash_cfi01.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index dfdced97b..8f3e56750 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -239,7 +239,6 @@ static inline void pflash_data_write(pflash_t *pfl, target_phys_addr_t offset, static void pflash_write(pflash_t *pfl, target_phys_addr_t offset, uint32_t value, int width) { - target_phys_addr_t boff; uint8_t *p; uint8_t cmd; @@ -250,12 +249,6 @@ static void pflash_write(pflash_t *pfl, target_phys_addr_t offset, /* Set the device in I/O access mode */ cpu_register_physical_memory(pfl->base, pfl->total_len, pfl->fl_mem); - boff = offset & (pfl->sector_len - 1); - - if (pfl->width == 2) - boff = boff >> 1; - else if (pfl->width == 4) - boff = boff >> 2; switch (pfl->wcycle) { case 0: |