aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/commsup.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-06-23 05:06:06 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 10:43:08 -0400
commit125e18745f16685f69a34fd6130d47598fc4bf54 (patch)
treec97ed94b0525a572efa1bd4990a55b18be5d781d /drivers/scsi/aacraid/commsup.c
parent78ce89c92bc6eaf5933b5664bff64253a7103bd7 (diff)
[PATCH] More BUG_ON conversion
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: James Bottomley <James.Bottomley@steeleye.com> Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r--drivers/scsi/aacraid/commsup.c6
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)
229static void fib_dealloc(struct fib * fibptr) 229static 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;