]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fs/romfs/inode.c: trivial improvements
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 17 Oct 2007 06:26:15 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:47 +0000 (08:42 -0700)
commit55ca3e796d452d1fd213846ae6ce8bc4d37b54cc
tree427c69b9ca01c3c259fe71b1d84ee18abbf27979
parent0cbc591bf884a5662b2fbb21b5c09fa1c1c7b579
fs/romfs/inode.c: trivial improvements

- There are no lists in fs/romfs/inode.c, so using list_entry
  is a bit confusing.  Replace it with container_of.

- It is unnecessary to cast the return value of
  kmem_cache_alloc, since it returns a void* pointer.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/romfs/inode.c