[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

@@ -556,10 +556,9 @@ static inline void soc_init(struct sbus_dev *sdev, int no)
int size, i;
int irq;
s = kmalloc (sizeof (struct soc), GFP_KERNEL);
s = kzalloc (sizeof (struct soc), GFP_KERNEL);
if (s == NULL)
return;
memset (s, 0, sizeof(struct soc));
spin_lock_init(&s->lock);
s->soc_no = no;