aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r--drivers/scsi/pmcraid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 35a2b3685208..94f71aef196f 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -77,7 +77,7 @@ static atomic_t pmcraid_adapter_count = ATOMIC_INIT(0);
77 */ 77 */
78static unsigned int pmcraid_major; 78static unsigned int pmcraid_major;
79static struct class *pmcraid_class; 79static struct class *pmcraid_class;
80DECLARE_BITMAP(pmcraid_minor, PMCRAID_MAX_ADAPTERS); 80static DECLARE_BITMAP(pmcraid_minor, PMCRAID_MAX_ADAPTERS);
81 81
82/* 82/*
83 * Module parameters 83 * Module parameters
@@ -345,7 +345,7 @@ static void pmcraid_init_cmdblk(struct pmcraid_cmd *cmd, int index)
345 cmd->scsi_cmd = NULL; 345 cmd->scsi_cmd = NULL;
346 cmd->release = 0; 346 cmd->release = 0;
347 cmd->completion_req = 0; 347 cmd->completion_req = 0;
348 cmd->sense_buffer = 0; 348 cmd->sense_buffer = NULL;
349 cmd->sense_buffer_dma = 0; 349 cmd->sense_buffer_dma = 0;
350 cmd->dma_handle = 0; 350 cmd->dma_handle = 0;
351 init_timer(&cmd->timer); 351 init_timer(&cmd->timer);
@@ -4818,7 +4818,7 @@ static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance)
4818 buffer_size, 4818 buffer_size,
4819 &(pinstance->hrrq_start_bus_addr[i])); 4819 &(pinstance->hrrq_start_bus_addr[i]));
4820 4820
4821 if (pinstance->hrrq_start[i] == 0) { 4821 if (!pinstance->hrrq_start[i]) {
4822 pmcraid_err("pci_alloc failed for hrrq vector : %d\n", 4822 pmcraid_err("pci_alloc failed for hrrq vector : %d\n",
4823 i); 4823 i);
4824 pmcraid_release_host_rrqs(pinstance, i); 4824 pmcraid_release_host_rrqs(pinstance, i);