summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-06-08 16:01:01 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-06-08 16:01:01 +0000
commitca9a733ed0f758d712213389c569a7f13cffbf57 (patch)
tree58a5908e334af989d14c8186309e80e0e4b62269 /sys/arch
parent2cb35ab19a688b512d5a0950b192a70e04bc926c (diff)
Remove an incorrect bzero() that was zeroing the
size of the pointer instead of the size of the buffer. Removal suggested by deraadt@ as no code uses the buffer after the zeroing.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/stand/ofwboot/ofdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/ofdev.c b/sys/arch/sparc64/stand/ofwboot/ofdev.c
index 3a54e9ffb91..5330ee8a221 100644
--- a/sys/arch/sparc64/stand/ofwboot/ofdev.c
+++ b/sys/arch/sparc64/stand/ofwboot/ofdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofdev.c,v 1.21 2014/06/08 15:34:05 jsg Exp $ */
+/* $OpenBSD: ofdev.c,v 1.22 2014/06/08 16:01:00 jsg Exp $ */
/* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */
/*
@@ -444,7 +444,6 @@ search_label(struct of_dev *devp, u_long off, char *buf, struct disklabel *lp,
return (NULL);
}
- bzero(buf, sizeof(buf));
return ("no disk label");
}