summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-18 02:14:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-18 02:14:18 +0000
commit9b6397660b3b38e02233bb576074232aa5080c1a (patch)
tree0efb0fd4ce24c87b36e2f845e9906bc9d83031c6 /sys/arch
parent021d071fde0e3998260ca886b1e01df6ad6eabe1 (diff)
msg is already gauranteed to be NULL
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/disksubr.c10
-rw-r--r--sys/arch/sparc64/sparc64/disksubr.c10
2 files changed, 6 insertions, 14 deletions
diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c
index c37f39a5bb2..79d1b2fabec 100644
--- a/sys/arch/sparc/sparc/disksubr.c
+++ b/sys/arch/sparc/sparc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.64 2007/06/17 00:27:29 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.65 2007/06/18 02:14:17 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */
/*
@@ -86,16 +86,12 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *),
#if NCD > 0
if (strat == cdstrategy) {
#if defined(CD9660)
- if (iso_disklabelspoof(dev, strat, lp) == 0) {
- msg = NULL;
+ if (iso_disklabelspoof(dev, strat, lp) == 0)
goto done;
- }
#endif
#if defined(UDF)
- if (udf_disklabelspoof(dev, strat, lp) == 0) {
- msg = NULL;
+ if (udf_disklabelspoof(dev, strat, lp) == 0)
goto done;
- }
#endif
}
#endif /* NCD > 0 */
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c
index ae0475e8e14..7b166e37fc5 100644
--- a/sys/arch/sparc64/sparc64/disksubr.c
+++ b/sys/arch/sparc64/sparc64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.43 2007/06/17 00:27:29 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.44 2007/06/18 02:14:17 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */
/*
@@ -79,16 +79,12 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *),
#if NCD > 0
if (strat == cdstrategy) {
#if defined(CD9660)
- if (iso_disklabelspoof(dev, strat, lp) == 0) {
- msg = NULL;
+ if (iso_disklabelspoof(dev, strat, lp) == 0)
goto done;
- }
#endif
#if defined(UDF)
- if (udf_disklabelspoof(dev, strat, lp) == 0) {
- msg = NULL;
+ if (udf_disklabelspoof(dev, strat, lp) == 0)
goto done;
- }
#endif
}
#endif /* NCD > 0 */