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)
commit77d67385f7b4a630912fd567f104946be137f477
treec180e5fd1721aca43d0296a61d36562420d30ac4
parent8db02da52895285e99d7eb2fa825fd393e61d9c5
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