Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mscp - Unconditionally initialise tp to avoid a warning
details: https://anonhg.NetBSD.org/src/rev/e2780f43e044
branches: trunk
changeset: 780079:e2780f43e044
user: abs <abs%NetBSD.org@localhost>
date: Wed Jul 11 16:41:16 2012 +0000
description:
- Unconditionally initialise tp to avoid a warning
- Use DK_CLOSED rather than CLOSED (no functional change)
diffstat:
sys/dev/mscp/mscp_disk.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 876bd9244951 -r e2780f43e044 sys/dev/mscp/mscp_disk.c
--- a/sys/dev/mscp/mscp_disk.c Wed Jul 11 15:03:14 2012 +0000
+++ b/sys/dev/mscp/mscp_disk.c Wed Jul 11 16:41:16 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mscp_disk.c,v 1.74 2012/07/10 22:34:37 abs Exp $ */
+/* $NetBSD: mscp_disk.c,v 1.75 2012/07/11 16:41:16 abs Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mscp_disk.c,v 1.74 2012/07/10 22:34:37 abs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mscp_disk.c,v 1.75 2012/07/11 16:41:16 abs Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -305,7 +305,7 @@
(void) tsleep(&udautab[unit], PZERO - 1,
"raclose", 0);
splx(s);
- ra->ra_state = CLOSED;
+ ra->ra_state = DK_CLOSED;
ra->ra_wlabel = 0;
}
#endif
@@ -461,9 +461,8 @@
if (cmd == ODIOCGDEFLABEL)
tp = &newlabel;
else
-#else
+#endif
tp = (struct disklabel *)data;
-#endif
memset(tp, 0, sizeof(struct disklabel));
tp->d_secsize = lp->d_secsize;
tp->d_nsectors = lp->d_nsectors;
@@ -523,7 +522,6 @@
return (error);
}
-
int
radump(dev_t dev, daddr_t blkno, void *va, size_t size)
{
Home |
Main Index |
Thread Index |
Old Index