simplify falsy comparisons
[m6w6/libmemcached] / src / bin / memerror.cc
index 2580550f9d905066102460e8c483a50de8a7f8a4..14a70c29b0ae506132506a93e29a022569702fde 100644 (file)
@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
     char *nptr;
     unsigned long value = strtoul(argv[optind], &nptr, 10);
 
-    if ((errno != 0) or (nptr == argv[optind] and value == 0)
+    if ((errno) or (nptr == argv[optind] and value == 0)
         or (value == ULONG_MAX and errno == ERANGE) or (value == 0 and errno == EINVAL))
     {
       std::cerr << "strtoul() was unable to parse given value" << std::endl;