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

Commit cbc2af3c authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: unisys: Don't zero struct elements which will be memset away

parent bbd4be30
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -522,12 +522,7 @@ bus_info_clear(void *v)
	struct visorchipset_bus_info *p = (struct visorchipset_bus_info *) v;

	kfree(p->name);
	p->name = NULL;

	kfree(p->description);
	p->description = NULL;

	p->state.created = 0;
	memset(p, 0, sizeof(struct visorchipset_bus_info));
}

@@ -537,7 +532,6 @@ dev_info_clear(void *v)
	struct visorchipset_device_info *p =
		(struct visorchipset_device_info *) v;

	p->state.created = 0;
	memset(p, 0, sizeof(struct visorchipset_device_info));
}