diff options
author | Don Brace <don.brace@pmcs.com> | 2015-11-04 16:50:13 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2015-11-09 12:34:18 -0500 |
commit | b48d9804281957ea35340076c2492c924ceb3ef0 (patch) | |
tree | 186b9f00dbe6ac0d5c3312caf5c7d5ff00d3986b | |
parent | 55d95d39b70fa391d609927242f55307d5536b17 (diff) |
hpsa: remove unused hpsa_tag_discard_error_bits
This function is no longer used.
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/hpsa.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 4085401c97d8..5a99627368a3 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -230,6 +230,7 @@ static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, | |||
230 | int cmd_type); | 230 | int cmd_type); |
231 | static void hpsa_free_cmd_pool(struct ctlr_info *h); | 231 | static void hpsa_free_cmd_pool(struct ctlr_info *h); |
232 | #define VPD_PAGE (1 << 8) | 232 | #define VPD_PAGE (1 << 8) |
233 | #define HPSA_SIMPLE_ERROR_BITS 0x03 | ||
233 | 234 | ||
234 | static int hpsa_scsi_queue_command(struct Scsi_Host *h, struct scsi_cmnd *cmd); | 235 | static int hpsa_scsi_queue_command(struct Scsi_Host *h, struct scsi_cmnd *cmd); |
235 | static void hpsa_scan_start(struct Scsi_Host *); | 236 | static void hpsa_scan_start(struct Scsi_Host *); |
@@ -6436,16 +6437,6 @@ static inline void finish_cmd(struct CommandList *c) | |||
6436 | complete(c->waiting); | 6437 | complete(c->waiting); |
6437 | } | 6438 | } |
6438 | 6439 | ||
6439 | |||
6440 | static inline u32 hpsa_tag_discard_error_bits(struct ctlr_info *h, u32 tag) | ||
6441 | { | ||
6442 | #define HPSA_PERF_ERROR_BITS ((1 << DIRECT_LOOKUP_SHIFT) - 1) | ||
6443 | #define HPSA_SIMPLE_ERROR_BITS 0x03 | ||
6444 | if (unlikely(!(h->transMethod & CFGTBL_Trans_Performant))) | ||
6445 | return tag & ~HPSA_SIMPLE_ERROR_BITS; | ||
6446 | return tag & ~HPSA_PERF_ERROR_BITS; | ||
6447 | } | ||
6448 | |||
6449 | /* process completion of an indexed ("direct lookup") command */ | 6440 | /* process completion of an indexed ("direct lookup") command */ |
6450 | static inline void process_indexed_cmd(struct ctlr_info *h, | 6441 | static inline void process_indexed_cmd(struct ctlr_info *h, |
6451 | u32 raw_tag) | 6442 | u32 raw_tag) |