drivers/staging/gasket: Use refcount_read()
authorTodd Poynor <toddpoynor@google.com>
Sat, 7 Jul 2018 06:43:10 +0000 (23:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jul 2018 08:02:09 +0000 (10:02 +0200)
commit4cc4dbbc0946c31b0988bb44eea19d759b054351
treee58c65d7e60cd7c59a0bf7995b9a1822b47f8609
parent4031e6ca35993fd5818d2ddf3ced5351b1d46c36
drivers/staging/gasket: Use refcount_read()

Use the refcount_read accessor function, avoid reaching into refcount
and atomic struct fields.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.c