usr/src/uts/common/fs/zfs/spa.c
changeset 9616 b12e6357efad
parent 9515 d3b739d9d043
child 9630 e25a03f552e0
--- a/usr/src/uts/common/fs/zfs/spa.c	Tue May 12 10:26:18 2009 -0600
+++ b/usr/src/uts/common/fs/zfs/spa.c	Tue May 12 12:45:33 2009 -0600
@@ -2390,9 +2390,11 @@
 
 		cpath = NULL;
 		cdevid = NULL;
-		if (nvlist_lookup_string(child[c], ZPOOL_CONFIG_PHYS_PATH,
-		    &cpath) != 0 && nvlist_lookup_string(child[c],
-		    ZPOOL_CONFIG_DEVID, &cdevid) != 0)
+		(void) nvlist_lookup_string(child[c], ZPOOL_CONFIG_PHYS_PATH,
+		    &cpath);
+		(void) nvlist_lookup_string(child[c], ZPOOL_CONFIG_DEVID,
+		    &cdevid);
+		if (cpath == NULL && cdevid == NULL)
 			return (EINVAL);
 		if ((spa_check_rootconf(cpath, cdevid, NULL,
 		    &tmptxg) == 0) && (tmptxg > txg)) {