]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/socket.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / net / socket.c
index 06fa217f58a99cb93b72b28ca99e85b7dc3739cd..a00851f981dbfcb17b26f64d7bfc2a5e64e31a5d 100644 (file)
@@ -993,7 +993,7 @@ static int sock_fasync(int fd, struct file *filp, int on)
 
        if (on)
        {
-               fna=(struct fasync_struct *)kmalloc(sizeof(struct fasync_struct), GFP_KERNEL);
+               fna = kmalloc(sizeof(struct fasync_struct), GFP_KERNEL);
                if(fna==NULL)
                        return -ENOMEM;
        }
@@ -2078,7 +2078,7 @@ void socket_seq_show(struct seq_file *seq)
        int cpu;
        int counter = 0;
 
-       for (cpu = 0; cpu < NR_CPUS; cpu++)
+       for_each_cpu(cpu)
                counter += per_cpu(sockets_in_use, cpu);
 
        /* It can be negative, by the way. 8) */