• Alexander Viro's avatar
    [PATCH] sparse: if_mii() helper (from jgarzik) · a086d60f
    Alexander Viro authored
    From: Jeff Garzik
    
    	Jeff's patch adds a helper for obtaining mii_ioctl_data from ifreq
    and switches drivers to it.  It's almost a "move common expression into
    inline helper", except that instead of
    
    	(struct mii_ioctl_data *)&rq->ifr_ifru.ifru_data
    
    it does
    
    	(struct mii_ioctl_data *)&rq->ifr_ifru
    
    - pointer to union instead of pointer to a field of union that has nothing
    to do with mii_ioctl_data *and* adds confusion by being a pointer itself.
    a086d60f
hamachi.c 65.6 KB