svn commit: r231215 - stable/7/sys/dev/mfi

Bjoern A. Zeeb bz at FreeBSD.org
Wed Feb 8 17:03:31 UTC 2012


Author: bz
Date: Wed Feb  8 17:03:30 2012
New Revision: 231215
URL: http://svn.freebsd.org/changeset/base/231215

Log:
  MFC r225428:
  
   Shorten a variable access some using a cached value rather than
   casting the input argument again, making the code more readable.
  
   Reviewed by:	jhb

Modified:
  stable/7/sys/dev/mfi/mfi.c
Directory Properties:
  stable/7/sys/   (props changed)

Modified: stable/7/sys/dev/mfi/mfi.c
==============================================================================
--- stable/7/sys/dev/mfi/mfi.c	Wed Feb  8 17:03:12 2012	(r231214)
+++ stable/7/sys/dev/mfi/mfi.c	Wed Feb  8 17:03:30 2012	(r231215)
@@ -2133,8 +2133,7 @@ mfi_ioctl(struct cdev *dev, u_long cmd, 
 
 		if (ioc->mfi_sense_len) {
 			/* get user-space sense ptr then copy out sense */
-			bcopy(&((struct mfi_ioc_packet*)arg)
-			    ->mfi_frame.raw[ioc->mfi_sense_off],
+			bcopy(&ioc->mfi_frame.raw[ioc->mfi_sense_off],
 			    &sense_ptr.sense_ptr_data[0],
 			    sizeof(sense_ptr.sense_ptr_data));
 #ifdef __amd64__


More information about the svn-src-stable-7 mailing list