batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2011-05-14 23:14:48 +02:00
parent f678bc9883
commit 16f14b45c4

View File

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