commit | 79c3266e58c3963840d929513aa118199720eb20 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Tue Oct 25 17:56:25 2022 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Wed Nov 02 00:30:43 2022 +0000 |
tree | d1787a800e4eb18c5dec1f322a015abc9de5b0f7 | |
parent | 0d7751fb67baa1eb296902fadeb37da26623f8df [diff] |
Remove 2 goto statements for wrongDevice If wrongDevice is set to true, we can just return right away. And since we are returning right away, we don't have to handle that case at the bottom of the function. This CL reduces the identation and simplifies the logic a bit. There should be no functional change. Bug: 211379801 Test: atest inputflinger_tests Change-Id: I3b11f27bc4efa7d2623ea54ce0a62eb4e6d1526b