Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242923
b: refs/heads/master
c: b665380
h: refs/heads/master
i:
  242921: 6e8680a
  242919: ef8bfbf
v: v3
  • Loading branch information
Jens Axboe committed Mar 12, 2011
1 parent 9c7d841 commit 4371843
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d9a4f9e21486fa83526a9a9fdf88b9b2cdfd299
refs/heads/master: b66538014f7eae121afa99ca18488fd67536a1bf
9 changes: 0 additions & 9 deletions trunk/drivers/block/cciss_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ scsi_cmd_stack_setup(ctlr_info_t *h, struct cciss_scsi_adapter_data_t *sa)
return -ENOMEM;
}

stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL);
if (!stk->elem) {
pci_free_consistent(h->pdev, size, stk->pool,
stk->cmd_pool_handle);
return -1;
}

for (i=0; i<CMD_STACK_SIZE; i++) {
stk->elem[i] = &stk->pool[i];
stk->elem[i]->busaddr = (__u32) (stk->cmd_pool_handle +
Expand Down Expand Up @@ -262,8 +255,6 @@ scsi_cmd_stack_free(ctlr_info_t *h)
pci_free_consistent(h->pdev, size, stk->pool, stk->cmd_pool_handle);
stk->pool = NULL;
cciss_free_sg_chain_blocks(sa->cmd_sg_list, CMD_STACK_SIZE);
kfree(stk->elem);
stk->elem = NULL;
}

#if 0
Expand Down

0 comments on commit 4371843

Please sign in to comment.