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:
parent
5b45773014
commit
b9344a0f3b
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue