config: De-nest the code in Port.splice().
authorGabe Black <gabeblack@google.com>
Sat, 12 Jan 2019 01:04:44 +0000 (17:04 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 14 Jan 2019 21:28:17 +0000 (21:28 +0000)
commitfd834ffb5334689792c81970c8da26ce27182932
tree09c8e35bb7b15a6c6f32d066a488fab0a7353c91
parent8dea46f92fb70ddb8a5be81b91027a21d5dc8433
config: De-nest the code in Port.splice().

The error checking in that function used an if/else structure where
one of the two branches would be the error condition which would cause
the function to exit. Because the function would exit if an error was
detected, there's no reason to have the non-error condition guarded in
the other half of the if.

This change de-nests the non-error cases to make the function simpler
and easier to read.

Change-Id: Idedf54e84a178fa5a2a47f96373374152e420cf3
Reviewed-on: https://gem5-review.googlesource.com/c/15516
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/python/m5/params.py