simplify falsy comparisons
[awesomized/libmemcached] / src / libmemcached / sasl.cc
index a190c5b7f8cfebcda1b33ff822ca77d6a68791b9..849a2256ea9805589e759f7702b89dc85bbc0952 100644 (file)
@@ -168,7 +168,7 @@ memcached_return_t memcached_sasl_authenticate_connection(memcached_instance_st
   }
 
   int pthread_error;
-  if ((pthread_error = pthread_once(&sasl_startup_once, sasl_startup_function)) != 0) {
+  if ((pthread_error = pthread_once(&sasl_startup_once, sasl_startup_function))) {
     return memcached_set_errno(*server, pthread_error, MEMCACHED_AT);
   }