[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:

committed by
Linus Torvalds

parent
8ac5436ced
commit
49d0c6039d
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user