mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
fs: ufs: remove cast for kmalloc return value
remove cast for kmalloc return value. Signed-off-by: Zhang Yanfei <[email protected]> Cc: Evgeniy Dushistov <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
eb2c560f9f
commit
194c8767ce
1 changed files with 1 additions and 2 deletions
|
|
@ -26,8 +26,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,
|
|||
count = size >> uspi->s_fshift;
|
||||
if (count > UFS_MAXFRAG)
|
||||
return NULL;
|
||||
ubh = (struct ufs_buffer_head *)
|
||||
kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS);
|
||||
ubh = kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS);
|
||||
if (!ubh)
|
||||
return NULL;
|
||||
ubh->fragment = fragment;
|
||||
|
|
|
|||
Loading…
Reference in a new issue