]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_debug: sweep up sdebug_capacity calculation
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sat, 29 Mar 2008 15:59:55 +0000 (00:59 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:19:06 +0000 (12:19 -0500)
commit8cc862b8e52193ce48a9f4e7dd5cc041efe0ebc6
treed828cc30a26b9a9712aa493959ccd1cb2437e9bc
parenta684c12663a565fabe348181a515570d8dff0167
[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 <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_debug.c