diff options
author | Stephen Cameron <stephenmcameron@gmail.com> | 2015-01-23 23:44:40 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-02-02 18:57:43 +0100 |
commit | c05e8866a17470a978b2c7cbc73d51891cd78f0e (patch) | |
tree | cc608344f62071c3d5f192d1819c440517433786 /drivers/scsi/hpsa.h | |
parent | hpsa: print CDBs instead of kernel virtual addresses for uncommon errors (diff) | |
download | linux-c05e8866a17470a978b2c7cbc73d51891cd78f0e.tar.xz linux-c05e8866a17470a978b2c7cbc73d51891cd78f0e.zip |
hpsa: do not use function pointers in fast path command submission
Performance tweak, avoid unnecessary function calls.
Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/hpsa.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h index 239eceac8b60..62c50c32070e 100644 --- a/drivers/scsi/hpsa.h +++ b/drivers/scsi/hpsa.h @@ -367,10 +367,7 @@ static void SA5_submit_command_no_read(struct ctlr_info *h, static void SA5_submit_command_ioaccel2(struct ctlr_info *h, struct CommandList *c) { - if (c->cmd_type == CMD_IOACCEL2) - writel(c->busaddr, h->vaddr + IOACCEL2_INBOUND_POSTQ_32); - else - writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); + writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); } /* |