]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
staging: lustre: ldlm: Use !x to check for kzalloc failure
[karo-tx-linux.git] / drivers / staging / lustre / lustre / ldlm / ldlm_pool.c
index 1605b9c692715512109da73215a7e9ec1c597738..4519d779a0ef7b924d2149d6685a1a7daff20608 100644 (file)
@@ -1422,7 +1422,7 @@ static int ldlm_pools_thread_start(void)
                return -EALREADY;
 
        ldlm_pools_thread = kzalloc(sizeof(*ldlm_pools_thread), GFP_NOFS);
-       if (ldlm_pools_thread == NULL)
+       if (!ldlm_pools_thread)
                return -ENOMEM;
 
        init_completion(&ldlm_pools_comp);