Changeset 19198


Ignore:
Timestamp:
2010-01-17T22:17:49+01:00 (8 years ago)
Author:
juhosg
Message:

rtl8366_smi: move memset into the rtl8366s_get_vlan_4k_entry function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c

    r19197 r19198  
    605605        u16 *tableaddr; 
    606606 
     607        memset(vlan4k, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    607608        vlan4k->vid = vid; 
    608609 
     
    856857 
    857858        /* Updating the 4K entry; lookup it and change the port member set */ 
    858         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    859859        rtl8366s_get_vlan_4k_entry(smi, val, &vlan4K); 
    860860        vlan4K.member |= ((1 << port) | RTL8366_PORT_CPU); 
     
    13681368        memset(buf, '\0', sizeof(buf)); 
    13691369        memset(&vlanMC, '\0', sizeof(struct rtl8366s_vlanconfig)); 
    1370         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    13711370 
    13721371        rtl8366s_get_vlan_member_config(smi, val->port_vlan, &vlanMC); 
     
    14951494        struct rtl8366_smi *smi = to_rtl8366(dev); 
    14961495        memset(&vlanMC, '\0', sizeof(struct rtl8366s_vlanconfig)); 
    1497         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    14981496 
    14991497        if (val->port_vlan >= RTL8366_NUM_VLANS) 
     
    15191517        struct rtl8366_smi *smi = to_rtl8366(dev); 
    15201518        memset(&vlanMC, '\0', sizeof(struct rtl8366s_vlanconfig)); 
    1521         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    15221519 
    15231520        if (val->port_vlan >= RTL8366_NUM_VLANS) 
     
    15411538        struct rtl8366_smi *smi = to_rtl8366(dev); 
    15421539        memset(&vlanMC, '\0', sizeof(struct rtl8366s_vlanconfig)); 
    1543         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    15441540 
    15451541        if (val->port_vlan >= RTL8366_NUM_VLANS) 
     
    15641560        struct rtl8366_smi *smi = to_rtl8366(dev); 
    15651561        memset(&vlanMC, '\0', sizeof(struct rtl8366s_vlanconfig)); 
    1566         memset(&vlan4K, '\0', sizeof(struct rtl8366s_vlan4kentry)); 
    15671562 
    15681563        if (val->port_vlan >= RTL8366_NUM_VLANS) 
Note: See TracChangeset for help on using the changeset viewer.