diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 13:35:09 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-18 14:15:59 +0100 |
commit | ee68a3c6252611a9cbb03e5366bba8a700858480 (patch) | |
tree | 16b7c15ca27954b297817bc2cc3b1024ec006988 /fs | |
parent | 8c655c9b49d7dda92cf346fa74e9d542dddd3551 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/befs/btree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/befs/btree.c b/fs/befs/btree.c index a66c9b1136e0..74e397db0b8b 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c @@ -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; |