Removed useless comparisons

Unsigned values are always non-negative which caused comparisons
using this to create warnings on RHEL5.
This commit is contained in:
Markus Makela
2016-04-25 16:38:42 +03:00
parent 06a5774ee4
commit cc90c24340

View File

@ -1334,7 +1334,7 @@ blr_handle_binlog_record(ROUTER_INSTANCE *router, GWBUF *pkt)
int event_limit = router->mariadb10_compat ?
MAX_EVENT_TYPE_MARIADB10 : MAX_EVENT_TYPE;
if (hdr.event_type >= 0 && hdr.event_type <= event_limit)
if (hdr.event_type <= event_limit)
{
router->stats.events[hdr.event_type]++;
}