Author: brian
Date: Thu Nov 25 21:51:43 2010
New Revision: 215843
URL: http://svn.freebsd.org/changeset/base/215843

Log:
  Don't zero 'Info' after setting it up in the ASR_IOCTL_COMPAT case.
  
  MFC after:    2 days

Modified:
  head/sys/dev/asr/asr.c

Modified: head/sys/dev/asr/asr.c
==============================================================================
--- head/sys/dev/asr/asr.c      Thu Nov 25 21:42:36 2010        (r215842)
+++ head/sys/dev/asr/asr.c      Thu Nov 25 21:51:43 2010        (r215843)
@@ -3708,9 +3708,9 @@ asr_ioctl(struct cdev *dev, u_long cmd, 
                Info.drive1CMOS = j;
 
                Info.numDrives = *((char *)ptok(0x475));
-#endif /* ASR_IOCTL_COMPAT */
-
+#else /* ASR_IOCTL_COMPAT */
                bzero(&Info, sizeof(Info));
+#endif /* ASR_IOCTL_COMPAT */
 
                Info.processorFamily = ASR_sig.dsProcessorFamily;
 #if defined(__i386__)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to