Commit ed720b2b authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman
Browse files

staging: vchiq_core: reduce indention in release_service_messages



It's possible to convert the if statement into a continue early and
save an indention level.

Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1621105859-30215-15-git-send-email-stefan.wahren@i2se.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7040e9d7
Loading
Loading
Loading
Loading
+36 −35
Original line number Diff line number Diff line
@@ -2578,11 +2578,13 @@ release_service_messages(struct vchiq_service *service)
	for (i = state->remote->slot_first; i <= slot_last; i++) {
		struct vchiq_slot_info *slot_info =
			SLOT_INFO_FROM_INDEX(state, i);
		if (slot_info->release_count != slot_info->use_count) {
			char *data =
				(char *)SLOT_DATA_FROM_INDEX(state, i);
		unsigned int pos, end;
		char *data;

		if (slot_info->release_count == slot_info->use_count)
			continue;

		data = (char *)SLOT_DATA_FROM_INDEX(state, i);
		end = VCHIQ_SLOT_SIZE;
		if (data == state->rx_data)
			/*
@@ -2617,7 +2619,6 @@ release_service_messages(struct vchiq_service *service)
		}
	}
}
}

static int
do_abort_bulks(struct vchiq_service *service)