mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
batman-adv: Remove comparising < 0 for unsigned type
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
f678bc9883
commit
16f14b45c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user