dev_get_stats() handles all issues with net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
        int                     i, count;
        rndis_query_cmplt_type  *resp;
        struct net_device       *net;
-       struct net_device_stats *stats;
+       const struct net_device_stats   *stats;
 
        if (!r) return -ENOMEM;
        resp = (rndis_query_cmplt_type *) r->buf;
        resp->InformationBufferOffset = cpu_to_le32 (16);
 
        net = rndis_per_dev_params[configNr].dev;
-       if (net->get_stats)
-               stats = net->get_stats(net);
-       else
-               stats = NULL;
+       stats = dev_get_stats(net);
 
        switch (OID) {