aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLior Dotan <liodot@gmail.com>2008-11-05 11:27:17 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:52:08 -0800
commit7c7e18790c8236ec2bb7581f5337ecff7e31916e (patch)
tree088f5ed7bd848931d141de6dc1c0ac9ecc7ad870 /drivers
parent1c80db5c9b6649bc499fc799771b0b3edd2d8a97 (diff)
Staging: slicoss: use kzalloc
This patch uses kzalloc() where really applicable. Signed-off-by: Lior Dotan <liodot@gmail.com> Cc: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/slicoss/slicoss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index 00390362f10..b8ac872e070 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\