kernel/cgroup.c: kfree(NULL) is legal
authorJesper Juhl <jj@chaosbits.net>
Thu, 2 Apr 2009 23:57:27 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:54 +0000 (19:04 -0700)
commit66bdc9cfc77ba89a9ee6c82d28375b646ab4bb1d
treedd0d292a2f413f8c14d2219f8de94516fffe18b5
parentec64f51545fffbc4cb968f0cea56341a4b07e85a
kernel/cgroup.c: kfree(NULL) is legal

Reduces object file size a bit:

Before:
$ size kernel/cgroup.o
   text    data     bss     dec     hex filename
  21593    7804    4924   34321    8611 kernel/cgroup.o
After:
$ size kernel/cgroup.o
   text    data     bss     dec     hex filename
  21537    7744    4924   34205    859d kernel/cgroup.o

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c