[syslinux:elflink] com32/chain: remove unused ebr_start

syslinux-bot for Michal Soltys soltys at ziu.info
Sat Feb 16 01:48:10 PST 2013


Commit-ID:  8d1edf6dd36d52e89109e13e1e538c4e28bfa737
Gitweb:     http://www.syslinux.org/commit/8d1edf6dd36d52e89109e13e1e538c4e28bfa737
Author:     Michal Soltys <soltys at ziu.info>
AuthorDate: Thu, 14 Feb 2013 16:51:45 +0100
Committer:  Michal Soltys <soltys at ziu.info>
CommitDate: Thu, 14 Feb 2013 16:53:04 +0100

com32/chain: remove unused ebr_start

Signed-off-by: Michal Soltys <soltys at ziu.info>

---
 com32/chain/partiter.c | 3 ---
 com32/chain/partiter.h | 1 -
 2 files changed, 4 deletions(-)

diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
index 2f6197a..2a14ef7 100644
--- a/com32/chain/partiter.c
+++ b/com32/chain/partiter.c
@@ -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;
 	}
diff --git a/com32/chain/partiter.h b/com32/chain/partiter.h
index 18c3315..cf52833 100644
--- a/com32/chain/partiter.h
+++ b/com32/chain/partiter.h
@@ -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 */


More information about the Syslinux-commits mailing list