Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 17:03:12 +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-8@freebsd.org
Subject:   svn commit: r231214 - stable/8/sys/dev/mfi
Message-ID:  <201202081703.q18H3CoW052450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Feb  8 17:03:12 2012
New Revision: 231214
URL: http://svn.freebsd.org/changeset/base/231214

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/8/sys/dev/mfi/mfi.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/mfi/mfi.c
==============================================================================
--- stable/8/sys/dev/mfi/mfi.c	Wed Feb  8 16:45:20 2012	(r231213)
+++ stable/8/sys/dev/mfi/mfi.c	Wed Feb  8 17:03:12 2012	(r231214)
@@ -2154,8 +2154,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.q18H3CoW052450>