mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 20:56:53 +07:00
staging: gasket: sysfs: remove check for refcount already zero
Remove the check for refcount already zero, which shouldn't be necessary. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
81edee7ac8
commit
e7cffa03b3
@ -111,8 +111,6 @@ static void put_mapping(struct gasket_sysfs_mapping *mapping)
|
||||
}
|
||||
|
||||
mutex_lock(&mapping->mutex);
|
||||
if (refcount_read(&mapping->refcount.refcount) == 0)
|
||||
dev_err(mapping->device, "Refcount is already 0\n");
|
||||
if (kref_put(&mapping->refcount, release_entry)) {
|
||||
dev_dbg(mapping->device, "Removing Gasket sysfs mapping\n");
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user