]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2
authorIngo Oeser <ioe-lkml@rameria.de>
Tue, 21 Mar 2006 07:01:47 +0000 (23:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 07:01:47 +0000 (23:01 -0800)
commit76dbe3014689c350706b7ee5d8cac2f613c81d72
tree78c0415bc4902862eef3b33254fc516ad24b6872
parent7bb70cf1c179ce1ea148da9fc29b9a90d35e0046
[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>
net/ipv6/addrconf.c