Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 111d639d authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

fs/befs/linuxvfs.c: remove unnecessary casting



Fix the following coccinelle warning:

  fs/befs/linuxvfs.c:278:14-36: WARNING: casting value returned by memory allocation function to (struct befs_inode_info *) is useless.

[akpm@linux-foundation.org: avoid 80-col ugliness]
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cc4f9c2a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -275,8 +275,8 @@ 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);

	bi = kmem_cache_alloc(befs_inode_cachep, GFP_KERNEL);
        if (!bi)
                return NULL;
        return &bi->vfs_inode;