Browse Source

batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Sven Eckelmann 14 năm trước cách đây
mục cha
commit
16f14b45c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)