commit | 16f14b45c48f4f1be5857103ee3054114604d98c | [log] [tgz] |
---|---|---|
author | Sven Eckelmann <sven@narfation.org> | Sat May 14 23:14:48 2011 +0200 |
committer | Sven Eckelmann <sven@narfation.org> | Mon May 30 07:39:30 2011 +0200 |
tree | 14f10ce13c94b620e09bb0ff8f25e62a175b4e1e | |
parent | f678bc9883bb28d9d20db01bc0de53efbacc21c5 [diff] |
batman-adv: Remove comparising < 0 for unsigned type Signed-off-by: Sven Eckelmann <sven@narfation.org>
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index e8491ee..628ab18 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c
@@ -115,7 +115,7 @@ !(debug_log->log_end - debug_log->log_start)) return -EAGAIN; - if ((!buf) || (count < 0)) + if (!buf) return -EINVAL; if (count == 0)