From 464fb26dd770b52b44721d46ef00985dc8fc88ee Mon Sep 17 00:00:00 2001 From: Paul Jensen Date: Tue, 3 Jun 2014 14:41:57 -0400 Subject: Fix build. Remove superfluous check triggering compiler error. (cherry picked from commit fc0f94a75c7a6d16ea9e327092f132a0d2c9175e) Change-Id: I0366eb3882948d77a8be2d5d32169a13f412ad4e --- clatd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clatd.c') diff --git a/clatd.c b/clatd.c index 7b8e43f..d8a9e72 100644 --- a/clatd.c +++ b/clatd.c @@ -418,7 +418,7 @@ int main(int argc, char **argv) { if (net_id_str != NULL) { char *end_ptr; net_id = strtoul(net_id_str, &end_ptr, 0); - if (net_id == ULONG_MAX || *net_id_str == 0 || *end_ptr != 0) { + if (*net_id_str == 0 || *end_ptr != 0) { logmsg(ANDROID_LOG_FATAL, "clatd called with invalid NetID %s", net_id_str); exit(1); } -- cgit v1.2.3