[syslinux] small patch for core/fs/diskio.c to remove redundant register write
Don Hiatt
donhiatt at gmail.com
Fri Aug 13 09:51:12 PDT 2010
The disk number is set twice in diskio.c/edd_rdwr_sectors() this patch
removes the redundant setting.
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diskio.diff
Type: text/x-patch
Size: 355 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20100813/c312d93e/attachment.bin>
More information about the Syslinux
mailing list