projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059cf16
)
memdisk/dskprobe: Code cleanup
author
Gene Cumm
<gene.cumm@gmail.com>
Thu, 27 Jan 2011 02:19:51 +0000
(21:19 -0500)
committer
Gene Cumm
<gene.cumm@gmail.com>
Thu, 27 Jan 2011 02:19:51 +0000
(21:19 -0500)
memdisk/dskprobe.c
patch
|
blob
|
history
diff --git
a/memdisk/dskprobe.c
b/memdisk/dskprobe.c
index
dd6de4c
..
52ea5ef
100644
(file)
--- a/
memdisk/dskprobe.c
+++ b/
memdisk/dskprobe.c
@@
-73,7
+73,7
@@
static int probe_int13h_01h(uint8_t drive)
int status;
com32sys_t regs;
- memset(
(void *)(®s)
, 0, sizeof regs);
+ memset(
®s
, 0, sizeof regs);
probe_any(0x01, drive, ®s);
status = (regs.eflags.l & 1) * 256 + regs.eax.b[1];
dskprobe_printf(" AH01: CF%d AH%02x\n", regs.eflags.l & 1, regs.eax.b[1]);
@@
-102,7
+102,6
@@
static int probe_int13h_08h(uint8_t drive, com32sys_t * regs)
static int probe_int13h_15h(uint8_t drive, com32sys_t * regs)
{
int present;
- int status;
memset(regs, 0, sizeof *regs);
probe_any(0x15, drive, regs);