Linux cryptographic layer development
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [PATCH] CRYPTO:  Simplify code using ARRAY_SIZE() macro.
Date: Tue, 27 May 2008 04:50:02 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.1.10.0805270449390.6239@localhost.localdomain> (raw)
In-Reply-To: <20080526112058.GA16525@gondor.apana.org.au>

On Mon, 26 May 2008, Herbert Xu wrote:

> On Sun, May 25, 2008 at 11:32:45AM +0000, Robert P. J. Day wrote:
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
> > index 81f3f95..c4c018d 100644
> > --- a/drivers/crypto/hifn_795x.c
> > +++ b/drivers/crypto/hifn_795x.c
> > @@ -894,7 +894,7 @@ static int hifn_enable_crypto(struct hifn_device *dev)
> >  	char *offtbl = NULL;
> >  	int i;
> >
> > -	for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) {
> > +	for (i = 0; i < ARRAY_SIZE(pci2id)); i++) {
>
> You've got an extra parenthesis here.  You should be building the
> patches that you send, no matter how trivial they might look!
>
> I've fixed it for you this time.

yes, my apologies.  thanks.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

  reply	other threads:[~2008-05-27  8:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25 11:32 [PATCH] CRYPTO: Simplify code using ARRAY_SIZE() macro Robert P. J. Day
2008-05-26 11:20 ` Herbert Xu
2008-05-27  8:50   ` Robert P. J. Day [this message]
2008-05-27 18:29   ` IPSec ESP Authenc Offload Loc Ho
2008-05-28  6:34     ` Herbert Xu
2008-05-28 16:42       ` Loc Ho
2008-05-28 22:22         ` Herbert Xu
2008-05-28 23:02           ` Loc Ho
2008-05-29  7:01             ` Herbert Xu
2008-05-29 17:44               ` Loc Ho
2008-05-29 23:35                 ` Herbert Xu

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=alpine.LFD.1.10.0805270449390.6239@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@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