From: Webb Scales Date: Fri, 23 Jan 2015 22:44:45 +0000 (-0600) Subject: hpsa: move SG descriptor set-up out of hpsa_scatter_gather() X-Git-Tag: fixes-v4.0-rc1~143^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec5cbf0422500ada7682a95e5c379dd13dd3a74c;p=pandora-kernel.git 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 Signed-off-by: Webb Scales Signed-off-by: Don Brace Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed