[syslinux:master] diskio: remove redundant register write

syslinux-bot for Don Hiatt donhiatt at gmail.com
Fri Aug 13 17:30:34 PDT 2010


Commit-ID:  ea3e62637ad3f19c58f17b233fa7476a0e099889
Gitweb:     http://syslinux.zytor.com/commit/ea3e62637ad3f19c58f17b233fa7476a0e099889
Author:     Don Hiatt <donhiatt at gmail.com>
AuthorDate: Fri, 13 Aug 2010 09:51:12 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Fri, 13 Aug 2010 14:58:30 -0700

diskio: remove redundant register write

The disk number is set twice in diskio.c/edd_rdwr_sectors() this patch
removes the redundant setting.


---
 core/fs/diskio.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index 481b59b..38d3da3 100644
--- a/core/fs/diskio.c
+++ b/core/fs/diskio.c
@@ -163,8 +163,6 @@ static int edd_rdwr_sectors(struct disk *disk, void *buf,
 
     memset(&reset, 0, sizeof reset);
 
-    ireg.edx.b[0] = disk->disk_number;
-
     lba += disk->part_start;
     while (count) {
 	chunk = count;



More information about the Syslinux-commits mailing list