From 7c7e18790c8236ec2bb7581f5337ecff7e31916e Mon Sep 17 00:00:00 2001 From: Lior Dotan Date: Wed, 5 Nov 2008 11:27:17 +0200 Subject: [PATCH] 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 --- drivers/staging/slicoss/slicoss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 00390362f10f..b8ac872e070c 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\ -- 2.34.1