Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 17:03:31 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r231215 - stable/7/sys/dev/mfi
Message-ID:  <201202081703.q18H3VKv052495@svn.freebsd.org>

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



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