From owner-svn-src-stable-7@FreeBSD.ORG Wed Feb 8 17:03:31 2012 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DE231065677; Wed, 8 Feb 2012 17:03:31 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5C5668FC19; Wed, 8 Feb 2012 17:03:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q18H3VuQ052497; Wed, 8 Feb 2012 17:03:31 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q18H3VKv052495; Wed, 8 Feb 2012 17:03:31 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201202081703.q18H3VKv052495@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 8 Feb 2012 17:03:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231215 - stable/7/sys/dev/mfi X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 17:03:31 -0000 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__