svn commit: r231214 - stable/8/sys/dev/mfi
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Feb 8 17:03:13 UTC 2012
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__
More information about the svn-src-all
mailing list