Re: [PATCH] SLQB: Coding style cleanups
From: Nick Piggin
Date: Tue May 05 2009 - 04:25:56 EST
On Sun, May 03, 2009 at 03:15:10PM +0300, Pekka Enberg wrote:
> From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
>
> This patch cleans up SQLB to make the code checkpatch clean.
Thanks!
>
> Cc: Nick Piggin <npiggin@xxxxxxx>
> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
> ---
> mm/slqb.c | 21 ++++++++++++---------
> 1 files changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/mm/slqb.c b/mm/slqb.c
> index f538f2c..44a91c0 100644
> --- a/mm/slqb.c
> +++ b/mm/slqb.c
> @@ -59,7 +59,7 @@ static inline void struct_slqb_page_wrong_size(void)
> /*
> * slqb_min_order: minimum allocation order for slabs
> */
> -static int slqb_min_order = 0;
> +static int slqb_min_order;
I actually like explicit zero initializers. I think it has been
a long time since this actually saved any memory with gcc.
Yes yes, I know that anybody who can "read C" will read the
implicit zero initializer anyway... however I just think it is
a stupid thing for checkpatch to warn against.
--
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/