ada: Refactor multiple returns
commitf51b8e5b7f44bbb70b8cef270d35ae7ac6ff41ef
authorSheri Bernstein <bernstein@adacore.com>
Thu, 27 Jul 2023 17:12:37 +0000 (27 17:12 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Aug 2023 11:14:36 +0000 (7 13:14 +0200)
tree1d7625066c5e8e8c9f69ba0384e449be4ff7fbc0
parent41d7d32c04d431a74cfe030c4a1d8c07ec6c6813
ada: Refactor multiple returns

Replace multiple returns by a single return statement with a conditional
expression. This is more readable and maintainable, and also conformant with
a Highly Recommended design principle of ISO 26262-6.

gcc/ada/

* libgnat/s-parame__qnx.adb: Refactor multiple returns.
gcc/ada/libgnat/s-parame__qnx.adb