iio: Break from the loop when we've found the right channel

No need to keep looping once we've found it.
This commit is contained in:
Bastien Nocera
2019-05-13 13:50:27 +02:00
committed by hadess
parent 4f850f0be5
commit e941f9ff5d

View File

@@ -588,6 +588,7 @@ process_scan_1 (char *data,
*ch_scale = info->scale;
*ch_present = TRUE;
break;
}
if (!*ch_present)