提交 006485dc 编写于 作者: Z Zhang Yanfei 提交者: Martin Schwidefsky

s390/dasd: remove cast for kzalloc return value

remove cast for kzalloc return value.
Signed-off-by: NZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 3d04fea5
...@@ -410,8 +410,7 @@ dasd_add_busid(const char *bus_id, int features) ...@@ -410,8 +410,7 @@ dasd_add_busid(const char *bus_id, int features)
struct dasd_devmap *devmap, *new, *tmp; struct dasd_devmap *devmap, *new, *tmp;
int hash; int hash;
new = (struct dasd_devmap *) new = kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
if (!new) if (!new)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
spin_lock(&dasd_devmap_lock); spin_lock(&dasd_devmap_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册