diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2005-11-07 04:01:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:59 -0500 |
commit | 49d0c6039dd36791cad36624e68bce5fe011bf12 (patch) | |
tree | 1d116c902e5950fdb36f97691fdce421850bb91a /drivers/fc4/soc.c | |
parent | 8ac5436ced2fd4eab3abe7cbc6d5a29881fa9ccb (diff) |
[PATCH] drivers/fc4: kmalloc + memset -> kzalloc conversion
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/fc4/soc.c')
-rw-r--r-- | drivers/fc4/soc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/fc4/soc.c b/drivers/fc4/soc.c index 247b46302777..ec1f94738c59 100644 --- a/drivers/fc4/soc.c +++ b/drivers/fc4/soc.c | |||
@@ -556,10 +556,9 @@ static inline void soc_init(struct sbus_dev *sdev, int no) | |||
556 | int size, i; | 556 | int size, i; |
557 | int irq; | 557 | int irq; |
558 | 558 | ||
559 | s = kmalloc (sizeof (struct soc), GFP_KERNEL); | 559 | s = kzalloc (sizeof (struct soc), GFP_KERNEL); |
560 | if (s == NULL) | 560 | if (s == NULL) |
561 | return; | 561 | return; |
562 | memset (s, 0, sizeof(struct soc)); | ||
563 | spin_lock_init(&s->lock); | 562 | spin_lock_init(&s->lock); |
564 | s->soc_no = no; | 563 | s->soc_no = no; |
565 | 564 | ||