Author: bz
Date: Wed Sep  7 00:43:28 2011
New Revision: 225428
URL: http://svn.freebsd.org/changeset/base/225428

Log:
  Shorten a variable access some using a cached value rather than
  casting the input argument again, making the code more readable.
  
  Reviewed by:  jhb
  MFC after:    2 weeks
  Approved by:  re (kib)

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

Modified: head/sys/dev/mfi/mfi.c
==============================================================================
--- head/sys/dev/mfi/mfi.c      Wed Sep  7 00:16:36 2011        (r225427)
+++ head/sys/dev/mfi/mfi.c      Wed Sep  7 00:43:28 2011        (r225428)
@@ -2132,8 +2132,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__
_______________________________________________
[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