Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c7e1879 authored by Lior Dotan's avatar Lior Dotan Committed by Greg Kroah-Hartman
Browse files

Staging: slicoss: use kzalloc



This patch uses kzalloc() where really applicable.

Signed-off-by: default avatarLior Dotan <liodot@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1c80db5c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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\