mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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>
This commit is contained in:
parent
1c80db5c9b
commit
7c7e18790c
1 changed files with 1 additions and 2 deletions
|
@ -2832,9 +2832,8 @@ static u32 slic_card_locate(struct adapter *adapter)
|
||||||
}
|
}
|
||||||
if (!physcard) {
|
if (!physcard) {
|
||||||
/* no structure allocated for this physical card yet */
|
/* no structure allocated for this physical card yet */
|
||||||
physcard = kmalloc(sizeof(struct physcard *), GFP_ATOMIC);
|
physcard = kzalloc(sizeof(struct physcard *), GFP_ATOMIC);
|
||||||
ASSERT(physcard);
|
ASSERT(physcard);
|
||||||
memset(physcard, 0, sizeof(struct physcard *));
|
|
||||||
|
|
||||||
DBG_MSG
|
DBG_MSG
|
||||||
("\n%s Allocate a PHYSICALcard:\n PHYSICAL_Card[%p]\n\
|
("\n%s Allocate a PHYSICALcard:\n PHYSICAL_Card[%p]\n\
|
||||||
|
|
Loading…
Reference in a new issue