Skip to content

Commit

Permalink
fs: befs: remove cast for kmalloc return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Yanfei authored and Jiri Kosina committed Mar 18, 2013
1 parent 8c655c9 commit ee68a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/befs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee68a3c

Please sign in to comment.