staging: vchiq_core: introduce parse_message
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 15 May 2021 19:10:57 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 15:56:32 +0000 (17:56 +0200)
commit4c51210461f9a08787fd20ef22f8c8050aec15c8
tree6b535a5b625461e7450ac0f88e2b426ca5dc9ecb
parent1a64ab341d5fe9a82accb5aa465d182a5740d9f1
staging: vchiq_core: introduce parse_message

The function parse_rx_slots is very longer. So move at least the message
parsing into a separate function to improve readability. In good case
the function returns the message payload length which is necessary to
move to the next message.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1621105859-30215-19-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c