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

Commit 2e363be0 authored by Navya Sri Nizamkari's avatar Navya Sri Nizamkari Committed by Greg Kroah-Hartman
Browse files

staging: dgnc: Use kcalloc instead of kzalloc.



This patch uses kcalloc instead of kzalloc function.
A coccinelle script was used to make this change.

Signed-off-by: default avatarNavya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb1185a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
		return -ENOMEM;

	/* make a temporary message buffer for the boot messages */
	brd->msgbuf_head = kzalloc(sizeof(u8) * 8192, GFP_KERNEL);
	brd->msgbuf_head = kcalloc(8192, sizeof(u8), GFP_KERNEL);
	brd->msgbuf = brd->msgbuf_head;

	if (!brd->msgbuf) {