diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-12 01:35:09 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-18 09:15:59 -0400 |
commit | ee68a3c6252611a9cbb03e5366bba8a700858480 (patch) | |
tree | 16b7c15ca27954b297817bc2cc3b1024ec006988 /fs/befs | |
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/befs')
-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, | |||
436 | goto error; | 436 | goto error; |
437 | } | 437 | } |
438 | 438 | ||
439 | if ((this_node = (befs_btree_node *) | 439 | if ((this_node = kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) { |
440 | kmalloc(sizeof (befs_btree_node), GFP_NOFS)) == NULL) { | ||
441 | befs_error(sb, "befs_btree_read() failed to allocate %u " | 440 | befs_error(sb, "befs_btree_read() failed to allocate %u " |
442 | "bytes of memory", sizeof (befs_btree_node)); | 441 | "bytes of memory", sizeof (befs_btree_node)); |
443 | goto error; | 442 | goto error; |