Exit the loop after confirming the id

During the process of assigning an id to the pointer, if we have already
confirmed the pointer's id, we should exit any unnecessary loops.

Bug: none
Test: atest inputflinger_tests

Change-Id: I77d5cf969419322a91f051aeaf4a65909dbefb3e
1 file changed