]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vchiq_core: reduce indentation in parse_open
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 3 Jun 2021 15:50:02 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 13:10:03 +0000 (15:10 +0200)
commit061a20da13a4e8deaa8b716677849294c9872a67
tree77be323fecfdaeba16864d6e46f4d164634308cc
parentb0a01b513522b5e9ac24f72fee8a082a27abd83c
staging: vchiq_core: reduce indentation in parse_open

The function parse_open() already has bail out sections like fail_open.
So use a goto for the other error cases like payload size is too small
and listening service cannot be found. This avoids two indentation levels.

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