Re: [V9fs-developer] [PATCH] fs/9p: Remove cast from memory allocation

2017-02-22 Thread Greg Kurz
On Wed, 22 Feb 2017 17:34:13 +1100 "Tobin C. Harding" wrote: > Coccinelle emits WARNING: casting value returned by memory allocation > function to (struct v9fs_inode *) is useless. > > Remove unnecessary cast. > > Signed-off-by: Tobin C. Harding > --- Reviewed-by: Greg Kurz > fs/9p/vfs_ino

[PATCH] fs/9p: Remove cast from memory allocation

2017-02-21 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct v9fs_inode *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- fs/9p/vfs_inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_