]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fs/proc/inode.c: remove cast from memory allocation
authorTobin C. Harding <me@tobin.cc>
Mon, 8 May 2017 22:54:55 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:10 +0000 (17:15 -0700)
commitf245e1c17a702964ad552878d01a10e53cf0e8e5
treec4420520fe12f42c1d082212aafa7fd7168f895d
parentbaf6a9a1db5a40ebfa5d3e761428d3deb2cc3a3b
fs/proc/inode.c: remove cast from memory allocation

Coccinelle emits this warning:

  WARNING: casting value returned by memory allocation function to (struct proc_inode *) is useless.

Remove unnecessary cast.

Link: http://lkml.kernel.org/r/1487745720-16967-1-git-send-email-me@tobin.cc
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/inode.c