OSDN Git Service

fs/befs/linuxvfs.c: remove unnecessary casting
[android-x86/kernel.git] / fs / befs / linuxvfs.c
index edf4777..e089f19 100644 (file)
@@ -274,9 +274,9 @@ more:
 static struct inode *
 befs_alloc_inode(struct super_block *sb)
 {
-        struct befs_inode_info *bi;
-        bi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep,
-                                                       GFP_KERNEL);
+       struct befs_inode_info *bi;
+
+       bi = kmem_cache_alloc(befs_inode_cachep, GFP_KERNEL);
         if (!bi)
                 return NULL;
         return &bi->vfs_inode;