aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.c
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2009-09-17 14:47:08 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-10-01 15:15:41 -0400
commit21d9db0b6231ef908fcdbfacefa392352776857f (patch)
tree906d16de3ac8c27c624b59aa5f72e4b6e608a1a4 /drivers/block/cciss.c
parentd6f4965d7d2e718eb9b223cb06db5f6a53b73507 (diff)
cciss: Remove some unused code in rebuild_lun_table()
Remove some unused code in rebuild_lun_table() Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r--drivers/block/cciss.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index a45268554e07..e15f4acf08a2 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -1708,7 +1708,6 @@ static void cciss_update_drive_info(int ctlr, int drv_index, int first_time)
1708 unsigned long flags = 0; 1708 unsigned long flags = 0;
1709 int ret = 0; 1709 int ret = 0;
1710 drive_info_struct *drvinfo; 1710 drive_info_struct *drvinfo;
1711 int was_only_controller_node;
1712 1711
1713 /* Get information about the disk and modify the driver structure */ 1712 /* Get information about the disk and modify the driver structure */
1714 inq_buff = kmalloc(sizeof(InquiryData_struct), GFP_KERNEL); 1713 inq_buff = kmalloc(sizeof(InquiryData_struct), GFP_KERNEL);
@@ -1716,13 +1715,6 @@ static void cciss_update_drive_info(int ctlr, int drv_index, int first_time)
1716 if (inq_buff == NULL || drvinfo == NULL) 1715 if (inq_buff == NULL || drvinfo == NULL)
1717 goto mem_msg; 1716 goto mem_msg;
1718 1717
1719 /* See if we're trying to update the "controller node"
1720 * this will happen the when the first logical drive gets
1721 * created by ACU.
1722 */
1723 was_only_controller_node = (drv_index == 0 &&
1724 h->drv[0].raid_level == -1);
1725
1726 /* testing to see if 16-byte CDBs are already being used */ 1718 /* testing to see if 16-byte CDBs are already being used */
1727 if (h->cciss_read == CCISS_READ_16) { 1719 if (h->cciss_read == CCISS_READ_16) {
1728 cciss_read_capacity_16(h->ctlr, drv_index, 1, 1720 cciss_read_capacity_16(h->ctlr, drv_index, 1,