summaryrefslogtreecommitdiffstats
path: root/fs/befs
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 06:35:09 +0100
committerJiri Kosina <jkosina@suse.cz>2013-03-18 14:15:59 +0100
commitee68a3c6252611a9cbb03e5366bba8a700858480 (patch)
tree16b7c15ca27954b297817bc2cc3b1024ec006988 /fs/befs
parentarm: remove cast for kzalloc return value (diff)
downloadlinux-ee68a3c6252611a9cbb03e5366bba8a700858480.tar.xz
linux-ee68a3c6252611a9cbb03e5366bba8a700858480.zip
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/befs')
-rw-r--r--fs/befs/btree.c3
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;