6959673 The variable fdr is not defined before use in fd.c onnv_144
authorFred Herard <Fred.Herard@Sun.COM>
Tue, 06 Jul 2010 22:24:24 -0400
changeset 12779 96016f1d9837
parent 12778 e64b5ecb0036
child 12780 c39281da15f8
child 12792 9ae1c153bab6
6959673 The variable fdr is not defined before use in fd.c
usr/src/uts/sun/io/fd.c
--- a/usr/src/uts/sun/io/fd.c	Tue Jul 06 18:22:03 2010 -0700
+++ b/usr/src/uts/sun/io/fd.c	Tue Jul 06 22:24:24 2010 -0400
@@ -19,8 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 
@@ -2582,9 +2581,6 @@
 
 	ASSERT(fdc->c_un->un_unit_no == unit);
 
-	FDERRPRINT(FDEP_L1, FDEM_RAWI,
-	    (C, "fdrawioctl: cmd[0]=0x%x\n", fdr.fdr_cmd[0]));
-
 	flag = B_READ;
 	err = 0;
 	fa = NULL;
@@ -2619,6 +2615,9 @@
 		break;
 	}
 
+	FDERRPRINT(FDEP_L1, FDEM_RAWI,
+	    (C, "fdrawioctl: cmd[0]=0x%x\n", fdr.fdr_cmd[0]));
+
 	mutex_enter(&fdc->c_lolock);
 
 	CHECK_AND_WAIT_FD_STATE_SUSPENDED(fdc);