The following commit has been merged in the master branch: commit 960f86c48926442da9ed540e6b9dc0ef69b2b4a5 Author: Sven Eckelmann sven@narfation.org Date: Sat May 14 23:14:48 2011 +0200
batman-adv: Remove comparising < 0 for unsigned type
Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/bat_debugfs.c b/bat_debugfs.c index e8491ee..628ab18 100644 --- a/bat_debugfs.c +++ b/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)