]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fs: ufs: remove cast for kmalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:37:05 +0000 (13:37 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:58 +0000 (14:15 +0100)
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>
fs/ufs/util.c

index 95425b59ce0a3582d1279f6484987ea611e4491e..b6c2f94e041edc5840cc7a081b0ea6b8f4abfbd9 100644 (file)
@@ -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;