From: FUJITA Tomonori Date: Sat, 29 Mar 2008 15:59:55 +0000 (+0900) Subject: [SCSI] scsi_debug: sweep up sdebug_capacity calculation X-Git-Tag: v2.6.26-rc1~1140^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28898873b0049d4271c0ff3eb57eb329bbc4d9df;p=pandora-kernel.git [SCSI] scsi_debug: sweep up sdebug_capacity calculation sdebug_capacity is calculated at five different places. This add a helper function to calculate sdebug_capacity to sweep up the duplicatated code. Signed-off-by: FUJITA Tomonori Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed