Commit 16f14b45 authored by Sven Eckelmann's avatar Sven Eckelmann

batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent f678bc98
...@@ -115,7 +115,7 @@ static ssize_t log_read(struct file *file, char __user *buf, ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment