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 10:04:02 -0500 |
commit | 912d4e8851389eee5c289ce0a7953e9067198232 (patch) | |
tree | 9f9435e4343ab047581a10bf68cc40e11257dad1 /drivers/scsi/aacraid/commsup.c | |
parent | 1196ae025ba4a36eb9e6baab57ba903d36139ff2 (diff) | |
download | linux-3.10-912d4e8851389eee5c289ce0a7953e9067198232.tar.gz linux-3.10-912d4e8851389eee5c289ce0a7953e9067198232.tar.bz2 linux-3.10-912d4e8851389eee5c289ce0a7953e9067198232.zip |
[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 a23d7e5de5b..5824a757a75 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, spin_unlock_irqrestore(&fibptr->event_lock, flags); BUG_ON(fibptr->done == 0); - if((fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)){ + if(unlikely(fibptr->flags & FIB_CONTEXT_FLAG_TIMED_OUT)) return -ETIMEDOUT; - } else { - return 0; - } + return 0; } /* * If the user does not want a response than return success otherwise |