Skip to content

Commit

Permalink
batman-adv: Remove comparising < 0 for unsigned type
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Eckelmann <sven@narfation.org>
  • Loading branch information
Sven Eckelmann committed May 30, 2011
1 parent f678bc9 commit 16f14b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/bat_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16f14b4

Please sign in to comment.