]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Don't use volatile when it makes no sense
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 29 Sep 2009 08:25:53 +0000 (10:25 +0200)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 29 Sep 2009 19:10:45 +0000 (12:10 -0700)
commit36700b51b34bbab515e947ed60104ada5ba6f827
tree93ce268de4ea93807df1cddea89b73d73a97c7e6
parentca8890245b44cc3abf311797ae62d2f0aaca5429
Don't use volatile when it makes no sense

The demand attach code defines volume pointers as volatile in
a number of places, despite the fact that the values in question
aren't being shared between multiple threads. It then also passes
these volatile pointers into functions which don't treat them as
volatile (and even to some which assign them to registers).

This patch simply removes the use of volatile in this situation.

Reviewed-on: http://gerrit.openafs.org/550
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/volume.c