fs: befs: remove cast for kmalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:35:09 +0000 (13:35 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:59 +0000 (14:15 +0100)
remove cast for kmalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
fs/befs/btree.c

index a66c9b1..74e397d 100644 (file)
@@ -436,8 +436,7 @@ befs_btree_read(struct super_block *sb, befs_data_stream * ds,
                goto error;
        }
 
-       if ((this_node = (befs_btree_node *)
-            kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) {
+       if ((this_node = kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) {
                befs_error(sb, "befs_btree_read() failed to allocate %u "
                           "bytes of memory", sizeof (befs_btree_node));
                goto error;