com32/chain: remove unused ebr_start
authorMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:51:45 +0000 (16:51 +0100)
committerMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:53:04 +0000 (16:53 +0100)
Signed-off-by: Michal Soltys <soltys@ziu.info>
com32/chain/partiter.c
com32/chain/partiter.h

index 2f6197a..2a14ef7 100644 (file)
@@ -308,7 +308,6 @@ static int prep_base_ebr(struct part_iter *iter)
        iter->dos.bebr_start = dp->start_lba;
        iter->dos.bebr_size = dp->length;
 
-       iter->dos.ebr_start = 0;
        iter->dos.ebr_size = iter->dos.bebr_size;
 
        iter->dos.cebr_lba = 0;
@@ -349,11 +348,9 @@ static int dos_next_ebr(struct part_iter *iter, uint32_t *lba,
 
        /* setup next frame values */
        if (dp[1].ostype) {
-           iter->dos.ebr_start = dp[1].start_lba;
            iter->dos.ebr_size = dp[1].length;
            iter->dos.nebr_lba = iter->dos.bebr_start + dp[1].start_lba;
        } else {
-           iter->dos.ebr_start = 0;
            iter->dos.ebr_size = 0;
            iter->dos.nebr_lba = 0;
        }
index 18c3315..cf52833 100644 (file)
@@ -79,7 +79,6 @@ struct part_iter {
            uint32_t cebr_lba;    /* absolute lba of curr ext. partition */
            uint32_t nebr_lba;    /* absolute lba of next ext. partition */
 
-           uint32_t ebr_start;   /* relative (to bebr) lba of next extended partition */
            uint32_t ebr_size;    /* size of next extended partition */
 
            int bebr_index0;      /* index of (0-3) of base ext. part., -1 if not present in MBR */