]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
build: Fix compile warning with clang 3.3
authorUser Decke <decke@bluelife.at>
Sat, 4 Jan 2014 22:16:58 +0000 (22:16 +0000)
committerUser Decke <decke@bluelife.at>
Sat, 4 Jan 2014 22:16:58 +0000 (22:16 +0000)
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

index b070d817242899b4f5bd2eccff5f8a5ea5dea4dc..9a068476eb5604f1834105f95d7e6f6886620115 100755 (executable)
@@ -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;