diff options
author | Salyzyn, Mark <mark_salyzyn@adaptec.com> | 2007-03-26 09:21:14 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-04-01 11:04:02 -0400 |
commit | 912d4e8851389eee5c289ce0a7953e9067198232 (patch) | |
tree | 9f9435e4343ab047581a10bf68cc40e11257dad1 /drivers/scsi/aacraid/commsup.c | |
parent | 1196ae025ba4a36eb9e6baab57ba903d36139ff2 (diff) |
[SCSI] aacraid: Add likely() and unlikely()
Add some likely() and unlikely() compiler hints in some of the aacraid
hardware interface layers. There should be no operational side effects
resulting from this patch and the changes should be mostly benign on x86
platforms.
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
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 a23d7e5de5b0..5824a757a753 100644 --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c | |||
@@ -519,11 +519,9 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size, | |||
519 | spin_unlock_irqrestore(&fibptr->event_lock, flags); | 519 | spin_unlock_irqrestore(&fibptr->event_lock, flags); |
520 | BUG_ON(fibptr->done == 0); | 520 | BUG_ON(fibptr->done == 0); |
521 | 521 | ||
522 | if((fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)){ | 522 | if(unlikely(fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)) |
523 | return -ETIMEDOUT; | 523 | return -ETIMEDOUT; |
524 | } else { | 524 | return 0; |
525 | return 0; | ||
526 | } | ||
527 | } | 525 | } |
528 | /* | 526 | /* |
529 | * If the user does not want a response than return success otherwise | 527 | * If the user does not want a response than return success otherwise |