-GArik: size_t is unsigned -- DCE
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 18:20:36 +0000 (18:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 18:20:36 +0000 (18:20 +0000)
src/transport/gnunet-helper-transport-wlan.c

index 72314beb231e9523f1abee91c1dbb87f99ec37e9..2a6fcb8fb6dbbe2270e5c161fc65d076cde86213 100644 (file)
@@ -1053,9 +1053,6 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
 {
   unsigned long crc;
 
-  if (0 > len)
-    return 0;
-
   crc = calc_crc_osdep (buf, len);
   buf += len;
   return (((crc) & 0xFF) == buf[0] && ((crc >> 8) & 0xFF) == buf[1] &&