[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>
This commit is contained in:
Deepak Saxena
2005-11-07 01:01:24 -08:00
committed by Linus Torvalds
parent 8ac5436ced
commit 49d0c6039d
3 changed files with 11 additions and 22 deletions

View File

@@ -665,9 +665,8 @@ static inline void socal_init(struct sbus_dev *sdev, int no)
int size, i;
int irq, node;
s = kmalloc (sizeof (struct socal), GFP_KERNEL);
s = kzalloc (sizeof (struct socal), GFP_KERNEL);
if (!s) return;
memset (s, 0, sizeof(struct socal));
spin_lock_init(&s->lock);
s->socal_no = no;