Commit 34a67811 authored by Manohar Vanga's avatar Manohar Vanga Committed by Greg Kroah-Hartman
Browse files

staging: vme_user: change kmalloc+memset to kzalloc

parent 0428fec3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -651,7 +651,7 @@ static int __init vme_user_init(void)


	/* Dynamically create the bind table based on module parameters */
	ids = kmalloc(sizeof(struct vme_device_id) * (bus_num + 1), GFP_KERNEL);
	ids = kzalloc(sizeof(struct vme_device_id) * (bus_num + 1), GFP_KERNEL);
	if (ids == NULL) {
		printk(KERN_ERR "%s: Unable to allocate ID table\n",
			driver_name);
@@ -659,8 +659,6 @@ static int __init vme_user_init(void)
		goto err_id;
	}

	memset(ids, 0, (sizeof(struct vme_device_id) * (bus_num + 1)));

	for (i = 0; i < bus_num; i++) {
		ids[i].bus = bus[i];
		/*