From 3799a33efa1d9bf64d538d1b1025d990506cde73 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 21 Jun 2018 08:31:08 +0200 Subject: [PATCH] Silence warnings --- runahead/dirty_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runahead/dirty_input.c b/runahead/dirty_input.c index 0f5a722753..965d932531 100644 --- a/runahead/dirty_input.c +++ b/runahead/dirty_input.c @@ -63,7 +63,7 @@ static void input_state_set_last(unsigned port, unsigned device, if ( (element->port == port) && (element->device == device) && (element->index == index) && - (id >= 0 && id < MAX_ID) + (id < MAX_ID) ) { element->state[id] = value; @@ -76,7 +76,7 @@ static void input_state_set_last(unsigned port, unsigned device, element->port = port; element->device = device; element->index = index; - if (id >= 0 && id < MAX_ID) + if (id < MAX_ID) element->state[id] = value; } @@ -98,7 +98,7 @@ static int16_t input_state_get_last(unsigned port, if ( (element->port == port) && (element->device == device) && (element->index == index) && - (id >= 0 && id < MAX_ID) + (id < MAX_ID) ) return element->state[id]; }