aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Hiatt <donhiatt@gmail.com>2010-08-13 09:51:12 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-08-13 14:58:30 -0700
commitea3e62637ad3f19c58f17b233fa7476a0e099889 (patch)
treecd123f05f40445456e36fa19fd83e889153f1136
parentf3ab4925bd8c5c42cf17a34377f82b53b48b132e (diff)
downloadsyslinux-ea3e62637ad3f19c58f17b233fa7476a0e099889.tar.gz
syslinux-ea3e62637ad3f19c58f17b233fa7476a0e099889.tar.xz
syslinux-ea3e62637ad3f19c58f17b233fa7476a0e099889.zip
diskio: remove redundant register write
The disk number is set twice in diskio.c/edd_rdwr_sectors() this patch removes the redundant setting.
-rw-r--r--core/fs/diskio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index 481b59b0..38d3da35 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;