MFC 298041,298259
298041 hyperv: No need to zero out softc MFC after: 1 week Sponsored by: Microsoft OSTC 298259 hyperv: Remove two assign-only local variables Submitted by: Jun Su <junsu microsoft com> MFC after: 1 week Sponsored by: Microsoft OSTC
This commit is contained in:
parent
427b3540bf
commit
5862c58ad9
@ -434,7 +434,6 @@ netvsc_attach(device_t dev)
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
bzero(sc, sizeof(hn_softc_t));
|
||||
sc->hn_unit = unit;
|
||||
sc->hn_dev = dev;
|
||||
|
||||
|
@ -1014,8 +1014,6 @@ storvsc_attach(device_t dev)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
bzero(sc, sizeof(struct storvsc_softc));
|
||||
|
||||
/* fill in driver specific properties */
|
||||
sc->hs_drv_props = &g_drv_props_table[stor_type];
|
||||
|
||||
|
@ -375,12 +375,6 @@ vmbus_channel_on_offer(hv_vmbus_channel_msg_header* hdr)
|
||||
|
||||
offer = (hv_vmbus_channel_offer_channel*) hdr;
|
||||
|
||||
hv_guid *guidType;
|
||||
hv_guid *guidInstance;
|
||||
|
||||
guidType = &offer->offer.interface_type;
|
||||
guidInstance = &offer->offer.interface_instance;
|
||||
|
||||
// copy offer data
|
||||
copied = malloc(sizeof(*copied), M_DEVBUF, M_NOWAIT);
|
||||
if (copied == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user