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

Commit a0172a6d authored by Yan Burman's avatar Yan Burman Committed by Linus Torvalds
Browse files

[PATCH] arm26: replace kmalloc+memset with kzalloc



Replace kmalloc+memset with kzalloc

Signed-off-by: default avatarYan Burman <burman.yan@gmail.com>
CC: Ian Molton <spyro@f2s.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b593e48d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -620,12 +620,10 @@ ecard_probe(int slot, card_type_t type)
	struct ex_ecid cid;
	int i, rc = -ENOMEM;

	ec = kmalloc(sizeof(ecard_t), GFP_KERNEL);
	ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
	if (!ec)
		goto nomem;

	memset(ec, 0, sizeof(ecard_t));

	ec->slot_no	= slot;
	ec->type        = type;
	ec->irq		= NO_IRQ;