From: Zhang Yanfei Date: Tue, 12 Mar 2013 05:37:05 +0000 (+0800) Subject: fs: ufs: remove cast for kmalloc return value X-Git-Tag: v3.11-rc1~89^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=194c8767cef585708645186a928089b1adf77f52;p=platform%2Fkernel%2Flinux-stable.git fs: ufs: remove cast for kmalloc return value remove cast for kmalloc return value. Signed-off-by: Zhang Yanfei Cc: Evgeniy Dushistov Cc: Andrew Morton Signed-off-by: Jiri Kosina --- diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 95425b5..b6c2f94 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c @@ -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;