pflash_cfi01: remove unused total_len field
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 30 Oct 2012 07:45:11 +0000 (07:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 30 Oct 2012 07:45:11 +0000 (07:45 +0000)
This field is completely unused.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/pflash_cfi01.c

index 2e29f8a38aafc3c2b2f0a6e5971c4856d0fdbb1f..b532054c5361249f851f1249c0bc492d5e17cb9c 100644 (file)
@@ -62,7 +62,6 @@ do {                                               \
 struct pflash_t {
     BlockDriverState *bs;
     hwaddr sector_len;
-    hwaddr total_len;
     int width;
     int wcycle; /* if 0, the flash is read normally */
     int bypass;
@@ -594,7 +593,6 @@ pflash_t *pflash_cfi01_register(hwaddr base,
 
     pfl->timer = qemu_new_timer_ns(vm_clock, pflash_timer, pfl);
     pfl->sector_len = sector_len;
-    pfl->total_len = total_len;
     pfl->width = width;
     pfl->wcycle = 0;
     pfl->cmd = 0;