aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-04-04 09:14:59 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-04-23 18:16:56 -0400
commit0fc9fd4016ae03b0f5da5d7156644755c94783c4 (patch)
tree49e77ef2b052017c345a31d12e8375b1ac666fcd /drivers/scsi/hpsa.c
parent715525057423eeb6308d2c605ae9ec8325e43858 (diff)
[SCSI] hpsa: use check_signature
Use check_signature to find a signature in the mmio address. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Acked-by: Mike Miller <mike.miller@hp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 500e20dd56ec..f49047478c94 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -3842,10 +3842,7 @@ static void __devinit hpsa_find_board_params(struct ctlr_info *h)
3842 3842
3843static inline bool hpsa_CISS_signature_present(struct ctlr_info *h) 3843static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)
3844{ 3844{
3845 if ((readb(&h->cfgtable->Signature[0]) != 'C') || 3845 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) {
3846 (readb(&h->cfgtable->Signature[1]) != 'I') ||
3847 (readb(&h->cfgtable->Signature[2]) != 'S') ||
3848 (readb(&h->cfgtable->Signature[3]) != 'S')) {
3849 dev_warn(&h->pdev->dev, "not a valid CISS config table\n"); 3846 dev_warn(&h->pdev->dev, "not a valid CISS config table\n");
3850 return false; 3847 return false;
3851 } 3848 }