Browse Source

batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Sven Eckelmann 14 years ago
parent
commit
16f14b45c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/batman-adv/bat_debugfs.c

+ 1 - 1
net/batman-adv/bat_debugfs.c

@@ -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)