]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_probe.c
OMAP1: clock: Typo fix for clock in omap1
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_probe.c
index 25524d4e372a387a4897c64281c3bd8eefc70b53..59f5b5e7c56684ff2d3bdbdfcf469ae97b633763 100644 (file)
@@ -165,9 +165,10 @@ static int tcpprobe_sprint(char *tbuf, int n)
 static ssize_t tcpprobe_read(struct file *file, char __user *buf,
                             size_t len, loff_t *ppos)
 {
-       int error = 0, cnt = 0;
+       int error = 0;
+       size_t cnt = 0;
 
-       if (!buf || len < 0)
+       if (!buf)
                return -EINVAL;
 
        while (cnt < len) {