mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 13:38:40 +00:00
s390/dasd: remove cast for kzalloc return value
remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
parent
3d04fea5e7
commit
006485dc48
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user