X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Ffc4%2Fsocal.c;fp=drivers%2Ffc4%2Fsocal.c;h=922e9613b2cf547fe6c708d2c5a7aab4af1d33fc;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=b2377dbd84a14223f2aa8ef5340388e7593fb883;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/drivers/fc4/socal.c b/drivers/fc4/socal.c index b2377dbd8..922e9613b 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;