From: Alejandro Martinez Ruiz <alex@flawedcode.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH 0/3] netdev: ARRAY_SIZE() cleanups
Date: Thu, 18 Oct 2007 11:47:06 +0200 [thread overview]
Message-ID: <20071018094706.GA23058@inspiron> (raw)
Hi,
these patches convert more cases of array size calculations to use the
ARRAY_SIZE() macro.
First patch converts those of the form 'sizeof(arr) / ETH_GSTRING_LEN',
second one some other mostly obvious cases, and the third applies to the
almost dead sk98lin driver (which also removes a useless check AFAICS).
Alex
next reply other threads:[~2007-10-18 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 9:47 Alejandro Martinez Ruiz [this message]
2007-10-18 9:49 ` [PATCH 1/3] netdev: use ARRAY_SIZE() instead of sizeof(array) / ETH_GSTRING_LEN Alejandro Martinez Ruiz
2007-10-25 7:39 ` Jeff Garzik
2007-10-18 9:50 ` [PATCH 2/3] netdev: ARRAY_SIZE() cleanups Alejandro Martinez Ruiz
2007-10-18 9:51 ` [PATCH 3/3] sk98lin: kill bogus check and convert to use ARRAY_SIZE() Alejandro Martinez Ruiz
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=20071018094706.GA23058@inspiron \
--to=alex@flawedcode.org \
--cc=jgarzik@pobox.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).