From: Lior Dotan Date: Wed, 5 Nov 2008 09:27:17 +0000 (+0200) Subject: Staging: slicoss: use kzalloc X-Git-Tag: upstream/snapshot3+hdmi~20816^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7e18790c8236ec2bb7581f5337ecff7e31916e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: slicoss: use kzalloc This patch uses kzalloc() where really applicable. Signed-off-by: Lior Dotan Cc: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 0039036..b8ac872 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -2832,9 +2832,8 @@ static u32 slic_card_locate(struct adapter *adapter) } if (!physcard) { /* no structure allocated for this physical card yet */ - physcard = kmalloc(sizeof(struct physcard *), GFP_ATOMIC); + physcard = kzalloc(sizeof(struct physcard *), GFP_ATOMIC); ASSERT(physcard); - memset(physcard, 0, sizeof(struct physcard *)); DBG_MSG ("\n%s Allocate a PHYSICALcard:\n PHYSICAL_Card[%p]\n\