contrib: findfix: Simplify checkbranch()

Reduce indentation level by returning immediately if no commits
are found in the search range. Due to reduced indentation this also
lets us print a message directly without violating column length
instead of assigning it to a variable and printing it.

Return immediately if a matching commit is found.

Change-Id: I5a41a8046a1f3cf2d405f61f8a133afe2b9a6d80
Tested-by: Guenter Roeck <>
Commit-Queue: Zubin Mithra <>
Reviewed-by: Zubin Mithra <>
Auto-Submit: Guenter Roeck <>
1 file changed