提交 16f14b45 编写于 作者: S Sven Eckelmann

batman-adv: Remove comparising < 0 for unsigned type

Signed-off-by: NSven Eckelmann <sven@narfation.org>
上级 f678bc98
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册