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:
sephe 2016-06-21 05:11:19 +00:00
parent 427b3540bf
commit 5862c58ad9
3 changed files with 0 additions and 9 deletions

View File

@ -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;

View File

@ -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];

View File

@ -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) {