]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/loopback.c
[PATCH] usb/input: remove Kconfig entries of old touchscreen drivers in favour of...
[linux-2.6-omap-h63xx.git] / drivers / net / loopback.c
index 690a1aae0b34705c6d04cb08bc31f1c3dbc72c0d..b79d6e8d30457ddcf8f2c9cd58b927595f5f3315 100644 (file)
@@ -172,11 +172,9 @@ static struct net_device_stats *get_stats(struct net_device *dev)
 
        memset(stats, 0, sizeof(struct net_device_stats));
 
-       for (i=0; i < NR_CPUS; i++) {
+       for_each_possible_cpu(i) {
                struct net_device_stats *lb_stats;
 
-               if (!cpu_possible(i)) 
-                       continue;
                lb_stats = &per_cpu(loopback_stats, i);
                stats->rx_bytes   += lb_stats->rx_bytes;
                stats->tx_bytes   += lb_stats->tx_bytes;