Re: [PATCH 1/2] iWARP Connection Manager.
- From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
- Date: Wed, 31 May 2006 16:47:23 -0400
On Wed, May 31, 2006 at 12:24:42PM -0700, Roland Dreier wrote:
+ cm_id_priv = kzalloc(sizeof *cm_id_priv, GFP_KERNEL);
Please put paren's after sizeof, it is not required by C but it
is easier to read.
I disagree -- I hate seeing sizeof look like a function call.
CodingStyle isn't explicit on this issue, but it does use parens in an
example demonstrating how to pass the size of a struct to kmalloc.
(grepping and comparing numbers for both usages in the code left as an
exercise to the bored).
Cheers,
Muli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/2][RFC] iWARP Core Support
- From: Steve Wise
- [PATCH 1/2] iWARP Connection Manager.
- From: Steve Wise
- Re: [PATCH 1/2] iWARP Connection Manager.
- From: Stephen Hemminger
- Re: [PATCH 1/2] iWARP Connection Manager.
- From: Roland Dreier
- [PATCH 0/2][RFC] iWARP Core Support
- Prev by Date: Re: 2.6.17-rc5-mm1
- Next by Date: Re: 2.6.17-rc5-mm1 panic on p-series
- Previous by thread: Re: [PATCH 1/2] iWARP Connection Manager.
- Next by thread: [PATCH 0/7][RFC] Ammasso 1100 iWARP Driver
- Index(es):