]> git.baikalelectronics.ru Git - kernel.git/commit
isci: removing the kmalloc in smp request construct
authorDave Jiang <dave.jiang@intel.com>
Wed, 25 May 2011 02:21:57 +0000 (02:21 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:50 +0000 (04:04 -0700)
commitf3f4caab7d6e4cd1e7ddb500aebececb3373a217
treec180e5fd1721aca43d0296a61d36562420d30ac4
parent626a96c2864b9f519df57e53d7f2fc204b94eebe
isci: removing the kmalloc in smp request construct

It doesn't look like there is any reason to do a kmalloc. We can do the
byte swap in place and avoid the allocation. This allow us to remove
a kmalloc and a memcpy.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/request.c