diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 06:15:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:18 -0500 |
commit | 88abaab4f9b08381e30e737980a1c49d6b524dfc (patch) | |
tree | d33aa82674c00c37cd293c9e888cff785880ce5a /drivers/s390/cio/chsc.c | |
parent | fb630517f0d0736ea73af07d6b357be9ad67e6f1 (diff) |
[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>
Diffstat (limited to 'drivers/s390/cio/chsc.c')
-rw-r--r-- | drivers/s390/cio/chsc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 8b57fe62a9f9..6412b2c3edd3 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c | |||
@@ -1403,10 +1403,9 @@ new_channel_path(int chpid) | |||
1403 | struct channel_path *chp; | 1403 | struct channel_path *chp; |
1404 | int ret; | 1404 | int ret; |
1405 | 1405 | ||
1406 | chp = kmalloc(sizeof(struct channel_path), GFP_KERNEL); | 1406 | chp = kzalloc(sizeof(struct channel_path), GFP_KERNEL); |
1407 | if (!chp) | 1407 | if (!chp) |
1408 | return -ENOMEM; | 1408 | return -ENOMEM; |
1409 | memset(chp, 0, sizeof(struct channel_path)); | ||
1410 | 1409 | ||
1411 | /* fill in status, etc. */ | 1410 | /* fill in status, etc. */ |
1412 | chp->id = chpid; | 1411 | chp->id = chpid; |