Commit 039879e8 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman
Browse files

staging: dgap: use kzalloc instead of kmalloc/memset

parent 32af5ae7
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -7322,11 +7322,9 @@ static struct cnode *dgap_newnode(int t)
{
	struct cnode *n;

	n = kmalloc(sizeof(struct cnode), GFP_KERNEL);
	if (n) {
		memset((char *)n, 0, sizeof(struct cnode));
	n = kzalloc(sizeof(struct cnode), GFP_KERNEL);
	if (n)
		n->type = t;
	}
	return n;
}