Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-03-16 Thread David S. Miller
From: Ingo Oeser <[EMAIL PROTECTED]> Date: Fri, 10 Mar 2006 23:34:26 +0100 > Here are some possible (and trivial) cleanups. > - use kzalloc() where possible > - invert allocation failure test like > if (object) { > /* Rest of function here */ > } > to > > if (object == NULL) >

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-03-10 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* Rest of function here */ Signed-o

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-03-10 Thread David S. Miller
From: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> Date: Sun, 12 Feb 2006 02:11:03 +0900 (JST) > In article <[EMAIL PROTECTED]> (at Sat, 11 Feb 2006 17:37:18 +0100), Ingo > Oeser <[EMAIL PROTECTED]> says: > > > From: Ingo Oeser <[EMAIL PROTECTED]> > > > > Here are some possible (and trivial) cleanups.

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-02-11 Thread YOSHIFUJI Hideaki / 吉藤英明
Hello. In article <[EMAIL PROTECTED]> (at Sat, 11 Feb 2006 17:37:18 +0100), Ingo Oeser <[EMAIL PROTECTED]> says: > From: Ingo Oeser <[EMAIL PROTECTED]> > > Here are some possible (and trivial) cleanups. > - use kzalloc() where possible > - remove unused label > - invert allocation failure test

[PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2

2006-02-11 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - remove unused label - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* Rest of func

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit)

2006-02-10 Thread Ingo Oeser
Hello, thanks for your review! On Thursday 09 February 2006 17:48, YOSHIFUJI Hideaki wrote: > Did you test your patch? No, just visual inspection, sorry. > Please keep nlmsg_failure, which is used by NLMSG_NEW(). Which is a rather nasty macro :-( Ok, will do a new version without that change,

Re: [PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit)

2006-02-09 Thread YOSHIFUJI Hideaki / 吉藤英明
Hello. In article <[EMAIL PROTECTED]> (at Thu, 9 Feb 2006 17:36:16 +0100), Ingo Oeser <[EMAIL PROTECTED]> says: > Here are some possible (and trivial) cleanups. : > - remove unused label > @@ -3193,7 +3190,6 @@ static int inet6_fill_ifinfo(struct sk_b > kfree(array); > return skb->l

[PATCH] IPv6: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit)

2006-02-09 Thread Ingo Oeser
From: Ingo Oeser <[EMAIL PROTECTED]> Here are some possible (and trivial) cleanups. - use kzalloc() where possible - remove unused label - invert allocation failure test like if (object) { /* Rest of function here */ } to if (object == NULL) return NULL; /* Rest of func