From 23d0a252dd64b7ddf61892f53f1dcdc3dc2c80b0 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Nov 2014 10:01:56 +0200 Subject: [PATCH] hog: Fix unnecessary < 0 check of unsigned value --- profiles/input/hog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 41da9f918..fb5166301 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -480,7 +480,7 @@ static void get_report_cb(guint8 status, const guint8 *pdu, guint16 len, goto exit; } - if (len <= 0) { + if (len == 0) { error("Error reading Report, length %d", len); status = EIO; goto exit; -- 2.47.3