hpsa: move SG descriptor set-up out of hpsa_scatter_gather()
authorWebb Scales <webbnh@hp.com>
Fri, 23 Jan 2015 22:44:45 +0000 (16:44 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:43 +0000 (09:57 -0800)
commitec5cbf0422500ada7682a95e5c379dd13dd3a74c
tree9c9473e060c623fe96c8a13781108490e285c7be
parentc05e8866a17470a978b2c7cbc73d51891cd78f0e
hpsa: move SG descriptor set-up out of hpsa_scatter_gather()

Move the code which sets up the SG descriptor out of hpsa_scatter_gather()
and into a subroutine where it can be reused (in the next patch).  The Ext
field is now assigned unconditionally: this makes the refactor much simpler,
but more importantly it removes a conditional operation from inside the
loop.  The case for which the conditional formerly tested is now executed
(unconditionally) after the loop is exited.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c
This page took 0.038592 seconds and 5 git commands to generate.