OSDN Git Service

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)
commit60f394b50fa07cf27ffcb2f73f56682a40a68540
tree77be323fecfdaeba16864d6e46f4d164634308cc
parent88a6ab1d0ab1374bdd6216044f9033b25d4cde5c
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