提交 7c7e1879 编写于 作者: L Lior Dotan 提交者: Greg Kroah-Hartman

Staging: slicoss: use kzalloc

This patch uses kzalloc() where really applicable.
Signed-off-by: NLior Dotan <liodot@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 1c80db5c
......@@ -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\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册