summaryrefslogtreecommitdiffstats
path: root/drivers/fc4/socal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fc4/socal.c')
-rw-r--r--drivers/fc4/socal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/fc4/socal.c b/drivers/fc4/socal.c
index b2377dbd84a..922e9613b2c 100644
--- a/drivers/fc4/socal.c
+++ b/drivers/fc4/socal.c
@@ -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;