Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2010 21:51:43 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215843 - head/sys/dev/asr
Message-ID:  <201011252151.oAPLphxd018581@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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__)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011252151.oAPLphxd018581>