diff options
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r-- | drivers/scsi/aacraid/commsup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c index d2ef17ea44fa..3f27419c66af 100644 --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c | |||
@@ -229,8 +229,7 @@ void aac_fib_init(struct fib *fibptr) | |||
229 | static void fib_dealloc(struct fib * fibptr) | 229 | static void fib_dealloc(struct fib * fibptr) |
230 | { | 230 | { |
231 | struct hw_fib *hw_fib = fibptr->hw_fib; | 231 | struct hw_fib *hw_fib = fibptr->hw_fib; |
232 | if(hw_fib->header.StructType != FIB_MAGIC) | 232 | BUG_ON(hw_fib->header.StructType != FIB_MAGIC); |
233 | BUG(); | ||
234 | hw_fib->header.XferState = 0; | 233 | hw_fib->header.XferState = 0; |
235 | } | 234 | } |
236 | 235 | ||
@@ -530,8 +529,7 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size, | |||
530 | } | 529 | } |
531 | } else | 530 | } else |
532 | down(&fibptr->event_wait); | 531 | down(&fibptr->event_wait); |
533 | if(fibptr->done == 0) | 532 | BUG_ON(fibptr->done == 0); |
534 | BUG(); | ||
535 | 533 | ||
536 | if((fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)){ | 534 | if((fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)){ |
537 | return -ETIMEDOUT; | 535 | return -ETIMEDOUT; |