[PATCH] s390: kzalloc() conversion in drivers/s390
Convert all kmalloc + memset sequences in drivers/s390 to kzalloc usage. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
fb630517f0
commit
88abaab4f9
@@ -1403,10 +1403,9 @@ new_channel_path(int chpid)
|
||||
struct channel_path *chp;
|
||||
int ret;
|
||||
|
||||
chp = kmalloc(sizeof(struct channel_path), GFP_KERNEL);
|
||||
chp = kzalloc(sizeof(struct channel_path), GFP_KERNEL);
|
||||
if (!chp)
|
||||
return -ENOMEM;
|
||||
memset(chp, 0, sizeof(struct channel_path));
|
||||
|
||||
/* fill in status, etc. */
|
||||
chp->id = chpid;
|
||||
|
||||
Reference in New Issue
Block a user