Merge branch 'ucount-fixes-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / crypto / api.c
index ee5991f..cf0869d 100644 (file)
@@ -167,11 +167,8 @@ void crypto_wait_for_test(struct crypto_larval *larval)
        int err;
 
        err = crypto_probing_notify(CRYPTO_MSG_ALG_REGISTER, larval->adult);
-       if (err != NOTIFY_STOP) {
-               if (WARN_ON(err != NOTIFY_DONE))
-                       goto out;
-               crypto_alg_tested(larval->alg.cra_driver_name, 0);
-       }
+       if (WARN_ON_ONCE(err != NOTIFY_STOP))
+               goto out;
 
        err = wait_for_completion_killable(&larval->completion);
        WARN_ON(err);