From b9344a0f3bf7c771edb43b0e4cc517d4465de9ea Mon Sep 17 00:00:00 2001 From: User Decke Date: Sat, 4 Jan 2014 22:16:58 +0000 Subject: [PATCH] build: Fix compile warning with clang 3.3 src/descrambler/cwc.c:493:11: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare] if (len < 0) return -1; ~~~ ^ ~ --- src/descrambler/cwc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index b070d817..9a068476 100755 --- a/src/descrambler/cwc.c +++ b/src/descrambler/cwc.c @@ -490,7 +490,6 @@ cwc_send_msg(cwc_t *cwc, const uint8_t *msg, size_t len, int sid, int enq, uint1 tvhtrace("cwc", "sending message sid %d len %"PRIsize_t" enq %d", sid, len, enq); tvhlog_hexdump("cwc", msg, len); - if (len < 0) return -1; buf[0] = (len - 2) >> 8; buf[1] = (len - 2) & 0xff;