Skip to contentSkip to conversation

pflash_cfi01: remove redundant line

PATCH Peter Maydell 1 participant 1 message Apr 16, 2012 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Eric Bénard

---
 hw/pflash_cfi01.c |    1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
Quoted 14 lines

hw/pflash_cfi01.c static uint32_t pflash_read (pflash_t *pfl, target_phys_addr_t offset, · line 149

Quoted 12 lines
hw/pflash_cfi01.c +0 -1
index b03f623..d1c7423 100644
@@ -144,7 +144,6 @@ static uint32_t pflash_read (pflash_t *pfl, target_phys_addr_t offset,
             } else {
                 ret = p[offset];
                 ret |= p[offset + 1] << 8;
-                ret |= p[offset + 1] << 8;
                 ret |= p[offset + 2] << 16;
                 ret |= p[offset + 3] << 24;
             }

Oh, and I think this change should go through qemu-trivial [cc'd], since this device isn't ARM-specific and the second patch in this series doesn't depend on it.

thanks
-- PMM