Early exit to prep for refactoring

Making the function exit early puts the code in a form that
makes future refactoring easier to see.
Test: make
Bug: 80297325

Change-Id: Ic90f5006566fd87310ad3c83c57ba020e588f370
(cherry picked from commit 89a52d4a7c3312ec9625ad1d07647d17f102cc33)
1 file changed