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;
      ~~~ ^ ~
This commit is contained in:
User Decke 2014-01-04 22:16:58 +00:00
parent 5b45773014
commit b9344a0f3b

View file

@ -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;