[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
@@ -115,10 +115,9 @@ raw3270_request_alloc(size_t size)
|
||||
struct raw3270_request *rq;
|
||||
|
||||
/* Allocate request structure */
|
||||
rq = kmalloc(sizeof(struct raw3270_request), GFP_KERNEL | GFP_DMA);
|
||||
rq = kzalloc(sizeof(struct raw3270_request), GFP_KERNEL | GFP_DMA);
|
||||
if (!rq)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
memset(rq, 0, sizeof(struct raw3270_request));
|
||||
|
||||
/* alloc output buffer. */
|
||||
if (size > 0) {
|
||||
|
Reference in New Issue
Block a user