瀏覽代碼

batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Sven Eckelmann 14 年之前
父節點
當前提交
16f14b45c4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)