diff options
author | Ingo Oeser <ioe-lkml@rameria.de> | 2006-03-20 23:01:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 23:01:47 -0800 |
commit | 322f74a432f976328e834a8663f2e75eb5933ecc (patch) | |
tree | 78c0415bc4902862eef3b33254fc516ad24b6872 /drivers/net/tg3.c | |
parent | 0c600eda4b1c9f8f6d1bd643d494db5a29842fbe (diff) |
[IPV6]: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2
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-off-by: Ingo Oeser <ioe-lkml@rameria.de>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
0 files changed, 0 insertions, 0 deletions