From: Mike Miller <mike.miller@hp.com>
To: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
ISS StorageDev <iss_storagedev@hp.com>,
"James E.J. Bottomley" <JBottomley@parallels.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] hpsa: use check_signature
Date: Tue, 03 Apr 2012 10:45:46 -0500 [thread overview]
Message-ID: <4F7B1B2A.7060602@hp.com> (raw)
In-Reply-To: <1333431534-4595-4-git-send-email-akinobu.mita@gmail.com>
On 04/03/2012 12:38 AM, Akinobu Mita wrote:
> Use check_signature to find a signature in the mmio address.
>
> Signed-off-by: Akinobu Mita<akinobu.mita@gmail.com>
> Cc: Mike Miller<mike.miller@hp.com>
> Cc: iss_storagedev@hp.com
> Cc: "James E.J. Bottomley"<JBottomley@parallels.com>
> Cc: linux-scsi@vger.kernel.org
Acked-by: Mike Miller <mike.miller@hp.com>
> ---
> drivers/scsi/hpsa.c | 5 +----
> 1 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
> index ddbf5fe..c867eeb 100644
> --- a/drivers/scsi/hpsa.c
> +++ b/drivers/scsi/hpsa.c
> @@ -3839,10 +3839,7 @@ static void __devinit hpsa_find_board_params(struct ctlr_info *h)
>
> static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)
> {
> - if ((readb(&h->cfgtable->Signature[0]) != 'C') ||
> - (readb(&h->cfgtable->Signature[1]) != 'I') ||
> - (readb(&h->cfgtable->Signature[2]) != 'S') ||
> - (readb(&h->cfgtable->Signature[3]) != 'S')) {
> + if (!check_signature(h->cfgtable->Signature, "CISS", 4)) {
> dev_warn(&h->pdev->dev, "not a valid CISS config table\n");
> return false;
> }
prev parent reply other threads:[~2012-04-03 15:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 5:38 [PATCH] cciss: cleanup bitops usage Akinobu Mita
2012-04-03 5:38 ` [PATCH] cciss: use check_signature Akinobu Mita
2012-04-03 5:38 ` [PATCH] hpsa: cleanup bitops usage Akinobu Mita
2012-04-03 5:38 ` [PATCH] hpsa: use check_signature Akinobu Mita
2012-04-03 15:45 ` Mike Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7B1B2A.7060602@hp.com \
--to=mike.miller@hp.com \
--cc=JBottomley@parallels.com \
--cc=akinobu.mita@gmail.com \
--cc=iss_storagedev@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox