aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/aachba.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r--drivers/scsi/aacraid/aachba.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index ea9e038813eb..83b5c7d085f2 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -396,8 +396,7 @@ static void get_container_name_callback(void *context, struct fib * fibptr)
396 scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; 396 scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL;
397 397
398 dprintk((KERN_DEBUG "get_container_name_callback[cpu %d]: t = %ld.\n", smp_processor_id(), jiffies)); 398 dprintk((KERN_DEBUG "get_container_name_callback[cpu %d]: t = %ld.\n", smp_processor_id(), jiffies));
399 if (fibptr == NULL) 399 BUG_ON(fibptr == NULL);
400 BUG();
401 400
402 get_name_reply = (struct aac_get_name_resp *) fib_data(fibptr); 401 get_name_reply = (struct aac_get_name_resp *) fib_data(fibptr);
403 /* Failure is irrelevant, using default value instead */ 402 /* Failure is irrelevant, using default value instead */
@@ -956,8 +955,7 @@ static void io_callback(void *context, struct fib * fibptr)
956 smp_processor_id(), (unsigned long long)lba, jiffies); 955 smp_processor_id(), (unsigned long long)lba, jiffies);
957 } 956 }
958 957
959 if (fibptr == NULL) 958 BUG_ON(fibptr == NULL);
960 BUG();
961 959
962 if(scsicmd->use_sg) 960 if(scsicmd->use_sg)
963 pci_unmap_sg(dev->pdev, 961 pci_unmap_sg(dev->pdev,
@@ -1092,8 +1090,7 @@ static int aac_read(struct scsi_cmnd * scsicmd, int cid)
1092 1090
1093 aac_build_sgraw(scsicmd, &readcmd->sg); 1091 aac_build_sgraw(scsicmd, &readcmd->sg);
1094 fibsize = sizeof(struct aac_raw_io) + ((le32_to_cpu(readcmd->sg.count) - 1) * sizeof (struct sgentryraw)); 1092 fibsize = sizeof(struct aac_raw_io) + ((le32_to_cpu(readcmd->sg.count) - 1) * sizeof (struct sgentryraw));
1095 if (fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr))) 1093 BUG_ON(fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr)));
1096 BUG();
1097 /* 1094 /*
1098 * Now send the Fib to the adapter 1095 * Now send the Fib to the adapter
1099 */ 1096 */
@@ -1261,8 +1258,7 @@ static int aac_write(struct scsi_cmnd * scsicmd, int cid)
1261 1258
1262 aac_build_sgraw(scsicmd, &writecmd->sg); 1259 aac_build_sgraw(scsicmd, &writecmd->sg);
1263 fibsize = sizeof(struct aac_raw_io) + ((le32_to_cpu(writecmd->sg.count) - 1) * sizeof (struct sgentryraw)); 1260 fibsize = sizeof(struct aac_raw_io) + ((le32_to_cpu(writecmd->sg.count) - 1) * sizeof (struct sgentryraw));
1264 if (fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr))) 1261 BUG_ON(fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr)));
1265 BUG();
1266 /* 1262 /*
1267 * Now send the Fib to the adapter 1263 * Now send the Fib to the adapter
1268 */ 1264 */
@@ -1904,8 +1900,7 @@ static void aac_srb_callback(void *context, struct fib * fibptr)
1904 scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; 1900 scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL;
1905 dev = (struct aac_dev *)scsicmd->device->host->hostdata; 1901 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
1906 1902
1907 if (fibptr == NULL) 1903 BUG_ON(fibptr == NULL);
1908 BUG();
1909 1904
1910 srbreply = (struct aac_srb_reply *) fib_data(fibptr); 1905 srbreply = (struct aac_srb_reply *) fib_data(fibptr);
1911 1906