[SCSI] qla2xxx: Micro optimization in queuecommand handler
authorChetan Loke <loke.chetan@gmail.com>
Tue, 15 May 2012 18:34:09 +0000 (14:34 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 22 May 2012 10:12:47 +0000 (11:12 +0100)
commita6eb3c9f73deaa318f17a19c7ad012b3ebe750c3
tree686ce06b73984e2364f633d105de8f60546991bc
parent9e336520c5f673d911642035a5d84fa331ff127f
[SCSI] qla2xxx: Micro optimization in queuecommand handler

Optimized queuecommand handler's to eliminate double head-room checks.
The checks are moved inside the 1st if-loop otherwise you would end up checking twice when there is
enough head room.

Signed-off-by: Chetan Loke <loke.chetan@gmail.com>
Reviewed-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Reviewed-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_iocb.c