aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-01-26 21:19:51 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-01-26 21:19:51 -0500
commit78904a7cfd0eaac65429245c5ac63d5e514eb7b1 (patch)
tree7d1ec3d113f2255dc9133f56a20b3e6301785d3c /memdisk
parent059cf1611b04bd99a033e008493c55284a9060a3 (diff)
downloadsyslinux-78904a7cfd0eaac65429245c5ac63d5e514eb7b1.tar.gz
syslinux-78904a7cfd0eaac65429245c5ac63d5e514eb7b1.tar.xz
syslinux-78904a7cfd0eaac65429245c5ac63d5e514eb7b1.zip
memdisk/dskprobe: Code cleanup
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/dskprobe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/memdisk/dskprobe.c b/memdisk/dskprobe.c
index dd6de4ca..52ea5efd 100644
--- 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 *)(&regs), 0, sizeof regs);
+ memset(&regs, 0, sizeof regs);
probe_any(0x01, drive, &regs);
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);