batman-adv: Remove comparising < 0 for unsigned type
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
@@ -115,7 +115,7 @@ static ssize_t log_read(struct file *file, char __user *buf,
|
|||||||
!(debug_log->log_end - debug_log->log_start))
|
!(debug_log->log_end - debug_log->log_start))
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
|
||||||
if ((!buf) || (count < 0))
|
if (!buf)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
|
Reference in New Issue
Block a user