ck_backoff: avoid dead store to ceiling

We only need to store the update value in our in-out parameter.
master
Paul Khuong 5 years ago committed by GitHub
parent 94f3712814
commit 91343eaa2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ ck_backoff_eb(unsigned int *c)
for (i = 0; i < ceiling; i++)
ck_pr_barrier();
*c = ceiling <<= ceiling < CK_BACKOFF_CEILING;
*c = ceiling << (ceiling < CK_BACKOFF_CEILING);
return;
}

Loading…
Cancel
Save