diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-09 12:06:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 13:34:12 -0500 |
commit | 24c971c61335cdc5e8fbeeb9dcc2805fa327d040 (patch) | |
tree | 468f6afd29c2399a1683737b477682150635a710 | |
parent | 3861b724de9d7b1a7fe304eaf34531e964415e47 (diff) |
ncpfs: remove redundant cast of struct ncp_inode_info
Casting a value returned by memory an allocation function is
not required and can be removed. Also add in a newline after before
the first statement. Code clean up as suggested by coccinelle.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ncpfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/ncpfs/inode.c b/drivers/staging/ncpfs/inode.c index 41de88cdc053..bb411610a071 100644 --- a/drivers/staging/ncpfs/inode.c +++ b/drivers/staging/ncpfs/inode.c | |||
@@ -53,7 +53,8 @@ static struct kmem_cache * ncp_inode_cachep; | |||
53 | static struct inode *ncp_alloc_inode(struct super_block *sb) | 53 | static struct inode *ncp_alloc_inode(struct super_block *sb) |
54 | { | 54 | { |
55 | struct ncp_inode_info *ei; | 55 | struct ncp_inode_info *ei; |
56 | ei = (struct ncp_inode_info *)kmem_cache_alloc(ncp_inode_cachep, GFP_KERNEL); | 56 | |
57 | ei = kmem_cache_alloc(ncp_inode_cachep, GFP_KERNEL); | ||
57 | if (!ei) | 58 | if (!ei) |
58 | return NULL; | 59 | return NULL; |
59 | return &ei->vfs_inode; | 60 | return &ei->vfs_inode; |