summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ncpfs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-09 17:06:40 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-09 19:34:12 +0100
commit24c971c61335cdc5e8fbeeb9dcc2805fa327d040 (patch)
tree468f6afd29c2399a1683737b477682150635a710 /drivers/staging/ncpfs
parent3861b724de9d7b1a7fe304eaf34531e964415e47 (diff)
downloadop-kernel-dev-24c971c61335cdc5e8fbeeb9dcc2805fa327d040.zip
op-kernel-dev-24c971c61335cdc5e8fbeeb9dcc2805fa327d040.tar.gz
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>
Diffstat (limited to 'drivers/staging/ncpfs')
-rw-r--r--drivers/staging/ncpfs/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/ncpfs/inode.c b/drivers/staging/ncpfs/inode.c
index 41de88c..bb41161 100644
--- a/drivers/staging/ncpfs/inode.c
+++ b/drivers/staging/ncpfs/inode.c
@@ -53,7 +53,8 @@ static struct kmem_cache * ncp_inode_cachep;
static struct inode *ncp_alloc_inode(struct super_block *sb)
{
struct ncp_inode_info *ei;
- ei = (struct ncp_inode_info *)kmem_cache_alloc(ncp_inode_cachep, GFP_KERNEL);
+
+ ei = kmem_cache_alloc(ncp_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;
return &ei->vfs_inode;
OpenPOWER on IntegriCloud