mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
fs: ufs: remove cast for kmalloc return value
remove cast for kmalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: Evgeniy Dushistov <dushistov@mail.ru> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
eb2c560f9f
commit
194c8767ce
@ -26,8 +26,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,
|
|||||||
count = size >> uspi->s_fshift;
|
count = size >> uspi->s_fshift;
|
||||||
if (count > UFS_MAXFRAG)
|
if (count > UFS_MAXFRAG)
|
||||||
return NULL;
|
return NULL;
|
||||||
ubh = (struct ufs_buffer_head *)
|
ubh = kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS);
|
||||||
kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS);
|
|
||||||
if (!ubh)
|
if (!ubh)
|
||||||
return NULL;
|
return NULL;
|
||||||
ubh->fragment = fragment;
|
ubh->fragment = fragment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user