mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
staging: vchiq_core: drop unnecessary release_count
There is no benefit of the variable release_count, so drop it. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/1621105859-30215-3-git-send-email-stefan.wahren@i2se.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1c82975b5f
commit
63e24ae26f
@@ -1175,7 +1175,6 @@ static void
|
||||
release_slot(struct vchiq_state *state, struct vchiq_slot_info *slot_info,
|
||||
struct vchiq_header *header, struct vchiq_service *service)
|
||||
{
|
||||
int release_count;
|
||||
|
||||
mutex_lock(&state->recycle_mutex);
|
||||
|
||||
@@ -1192,10 +1191,9 @@ release_slot(struct vchiq_state *state, struct vchiq_slot_info *slot_info,
|
||||
header->msgid = msgid & ~VCHIQ_MSGID_CLAIMED;
|
||||
}
|
||||
|
||||
release_count = slot_info->release_count;
|
||||
slot_info->release_count = ++release_count;
|
||||
slot_info->release_count++;
|
||||
|
||||
if (release_count == slot_info->use_count) {
|
||||
if (slot_info->release_count == slot_info->use_count) {
|
||||
int slot_queue_recycle;
|
||||
/* Add to the freed queue */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user