]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/parisc/led.c
remove the unused exports of sys_open/sys_read
[linux-2.6-omap-h63xx.git] / drivers / parisc / led.c
index 98be2880757d90fe48a5e2947bada642568f3261..703b85edb004b3d5b9f7dca1286ad4cba156291f 100644 (file)
@@ -195,12 +195,6 @@ static int led_proc_write(struct file *file, const char *buf,
 
        cur = lbuf;
 
-       /* skip initial spaces */
-       while (*cur && isspace(*cur))
-       {
-               cur++;
-       }
-
        switch ((long)data)
        {
        case LED_NOLCD:
@@ -365,12 +359,12 @@ static __inline__ int led_get_net_activity(void)
         * for reading should be OK */
        read_lock(&dev_base_lock);
        rcu_read_lock();
-       for_each_netdev(dev) {
+       for_each_netdev(&init_net, dev) {
            struct net_device_stats *stats;
            struct in_device *in_dev = __in_dev_get_rcu(dev);
            if (!in_dev || !in_dev->ifa_list)
                continue;
-           if (LOOPBACK(in_dev->ifa_list->ifa_local))
+           if (ipv4_is_loopback(in_dev->ifa_list->ifa_local))
                continue;
            stats = dev->get_stats(dev);
            rx_total += stats->rx_packets;