summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/stand/boot/diskio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sgi/stand/boot/diskio.c')
-rw-r--r--sys/arch/sgi/stand/boot/diskio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/stand/boot/diskio.c b/sys/arch/sgi/stand/boot/diskio.c
index a136cd37630..749794be0e5 100644
--- a/sys/arch/sgi/stand/boot/diskio.c
+++ b/sys/arch/sgi/stand/boot/diskio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskio.c,v 1.4 2009/05/09 18:08:59 miod Exp $ */
+/* $OpenBSD: diskio.c,v 1.5 2009/07/15 20:34:57 martynas Exp $ */
/*
* Copyright (c) 2000 Opsycon AB (www.opsycon.se)
@@ -77,9 +77,10 @@ dioopen(struct open_file *f, ...)
va_list ap;
va_start(ap, f);
-
ctlr = va_arg(ap, char *);
partition = va_arg(ap, int);
+ va_end(ap);
+
if (partition >= MAXPARTITIONS)
return (ENXIO);