batman-adv: Remove comparising < 0 for unsigned type
authorSven Eckelmann <sven@narfation.org>
Sat, 14 May 2011 21:14:48 +0000 (23:14 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:30 +0000 (07:39 +0200)
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_debugfs.c

index e8491ee66468602173d2d697cc12119706b88446..628ab185e9eecf743821fe7bb33823d8a9d0402a 100644 (file)
@@ -115,7 +115,7 @@ static ssize_t log_read(struct file *file, char __user *buf,
            !(debug_log->log_end - debug_log->log_start))
                return -EAGAIN;
 
-       if ((!buf) || (count < 0))
+       if (!buf)
                return -EINVAL;
 
        if (count == 0)