fs: befs: remove cast for kmalloc return value
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>
This commit is contained in:
parent
8c655c9b49
commit
ee68a3c625
1 changed files with 1 additions and 2 deletions
|
@ -436,8 +436,7 @@ befs_btree_read(struct super_block *sb, befs_data_stream * ds,
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this_node = (befs_btree_node *)
|
if ((this_node = kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) {
|
||||||
kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) {
|
|
||||||
befs_error(sb, "befs_btree_read() failed to allocate %u "
|
befs_error(sb, "befs_btree_read() failed to allocate %u "
|
||||||
"bytes of memory", sizeof (befs_btree_node));
|
"bytes of memory", sizeof (befs_btree_node));
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in a new issue