From: Jiri Kosina <jkosina@suse.cz>
To: Kulikov Vasiliy <segooon@gmail.com>
Cc: Kernel Janitors <kernel-janitors@vger.kernel.org>,
Robert Love <robert.w.love@intel.com>,
"James E.J. Bottomley" <James.Bottomley@suse.de>,
Vasu Dev <vasu.dev@intel.com>, Joe Eykholt <jeykholt@cisco.com>,
devel@open-fcoe.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 08/16] trivial: use ARRAY_SIZE
Date: Tue, 20 Jul 2010 17:15:56 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.00.1007201715330.4741@pobox.suse.cz> (raw)
In-Reply-To: <1277726113-24666-1-git-send-email-segooon@gmail.com>
On Mon, 28 Jun 2010, Kulikov Vasiliy wrote:
> Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
>
> Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
> ---
> drivers/scsi/libfc/fc_exch.c | 4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
> index 104e0fb..ca52bfa 100644
> --- a/drivers/scsi/libfc/fc_exch.c
> +++ b/drivers/scsi/libfc/fc_exch.c
> @@ -219,8 +219,6 @@ static void fc_exch_els_rrq(struct fc_seq *, struct fc_frame *);
> */
> static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT;
>
> -#define FC_TABLE_SIZE(x) (sizeof(x) / sizeof(x[0]))
> -
> /**
> * fc_exch_name_lookup() - Lookup name by opcode
> * @op: Opcode to be looked up
> @@ -249,7 +247,7 @@ static inline const char *fc_exch_name_lookup(unsigned int op, char **table,
> static const char *fc_exch_rctl_name(unsigned int op)
> {
> return fc_exch_name_lookup(op, fc_exch_rctl_names,
> - FC_TABLE_SIZE(fc_exch_rctl_names));
> + ARRAY_SIZE(fc_exch_rctl_names));
> }
Applied. Please use better Subject: lines next time though. Having the
whole series have the same Subject: line doesn't really help.
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
prev parent reply other threads:[~2010-07-20 15:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 11:55 Kulikov Vasiliy
2010-07-20 15:15 ` Jiri Kosina [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=alpine.LNX.2.00.1007201715330.4741@pobox.suse.cz \
--to=jkosina@suse.cz \
--cc=James.Bottomley@suse.de \
--cc=devel@open-fcoe.org \
--cc=jeykholt@cisco.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=robert.w.love@intel.com \
--cc=segooon@gmail.com \
--cc=vasu.dev@intel.com \
/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
all inboxes | Powered by JetHome®