staging: vchiq_core: introduce get_bulk_reason
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 25 Apr 2021 10:50:56 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:27 +0000 (11:19 +0200)
commit08f31d0196cb9387ca9d2fa1720d34ae1e2cf25b
treee0d2ced0246868b56e070fb8c406118832d40263
parentf7ba60127a3a123c4d3439b5bc527955e8923e3d
staging: vchiq_core: introduce get_bulk_reason

Nesting multiple ternary operators over multiple lines isn't easy to
read. Move this logic into a separate inline function.

Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1619347863-16080-5-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