Skip to content

Commit

Permalink
cciss: Remove some unused code in rebuild_lun_table()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Oct 1, 2009
1 parent d6f4965 commit 21d9db0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,21 +1708,13 @@ static void cciss_update_drive_info(int ctlr, int drv_index, int first_time)
unsigned long flags = 0;
int ret = 0;
drive_info_struct *drvinfo;
int was_only_controller_node;

/* Get information about the disk and modify the driver structure */
inq_buff = kmalloc(sizeof(InquiryData_struct), GFP_KERNEL);
drvinfo = kmalloc(sizeof(*drvinfo), GFP_KERNEL);
if (inq_buff == NULL || drvinfo == NULL)
goto mem_msg;

/* See if we're trying to update the "controller node"
* this will happen the when the first logical drive gets
* created by ACU.
*/
was_only_controller_node = (drv_index == 0 &&
h->drv[0].raid_level == -1);

/* testing to see if 16-byte CDBs are already being used */
if (h->cciss_read == CCISS_READ_16) {
cciss_read_capacity_16(h->ctlr, drv_index, 1,
Expand Down

0 comments on commit 21d9db0

Please sign in to comment.