Revert "ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cycle"
[cascardo/linux.git] / kernel / pid.c
index 4d73a83..f66162f 100644 (file)
@@ -311,7 +311,7 @@ struct pid *alloc_pid(struct pid_namespace *ns)
        pid->level = ns->level;
        for (i = ns->level; i >= 0; i--) {
                nr = alloc_pidmap(tmp);
-               if (IS_ERR_VALUE(nr)) {
+               if (nr < 0) {
                        retval = nr;
                        goto out_free;
                }