From: Sven Eckelmann Date: Sat, 14 May 2011 21:14:48 +0000 (+0200) Subject: batman-adv: Remove comparising < 0 for unsigned type X-Git-Tag: MMI-PSA29.97-13-9~18929^2~199^2~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16f14b45c48f4f1be5857103ee3054114604d98c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git batman-adv: Remove comparising < 0 for unsigned type Signed-off-by: Sven Eckelmann --- diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index e8491ee66468..628ab185e9ee 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/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)