dnsapi: Remove a useless check.
authorAustin English <austinenglish@gmail.com>
Fri, 5 Dec 2008 07:12:36 +0000 (01:12 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 5 Dec 2008 12:52:31 +0000 (13:52 +0100)
dlls/dnsapi/ns_parse.c

index cb9aa62cb927cb50343ff4bf8f131df08ec18658..bfb83c249e931101240c3320a2ce2495f2893a63 100644 (file)
@@ -136,7 +136,7 @@ dns_ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
        int b;
 
        /* Make section right. */
-       if (section < 0 || section >= ns_s_max)
+       if (section >= ns_s_max)
                RETERR(ENODEV);
        if (section != handle->_sect)
                setsection(handle, section);