[3/9] batman-adv: Remove comparising < 0 for unsigned type

Message ID 1305407694-16789-3-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit 960f86c48926442da9ed540e6b9dc0ef69b2b4a5
Headers

Commit Message

Sven Eckelmann May 14, 2011, 9:14 p.m. UTC
  Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 bat_debugfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Comments

Marek Lindner May 18, 2011, 9:37 a.m. UTC | #1
On Saturday 14 May 2011 23:14:48 Sven Eckelmann wrote:
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
>  bat_debugfs.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied in revision 960f86c.

Thanks,
Marek
  

Patch

diff --git a/bat_debugfs.c b/bat_debugfs.c
index e8491ee..628ab18 100644
--- a/bat_debugfs.c
+++ b/bat_debugfs.c
@@ -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)