staging: vchiq_core: introduce handle_poll
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 3 Jun 2021 15:50:05 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 13:10:03 +0000 (15:10 +0200)
commit33e82ff2a05517c1380f7d765dee9a18b867cea0
tree5fcc4804846a9873e5f62da7ac226d5d8aa86b65
parent826818f88bc2f4186427214d59612090beabeb39
staging: vchiq_core: introduce handle_poll

The function slot_handler_func() has very deep indentations. Moving the
poll handling into separate function could improve the readability.
Use the return value to keep the poll_needed handling at the same place.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1622735405-9980-17-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