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:
@@ -588,6 +588,7 @@ process_scan_1 (char *data,
|
||||
|
||||
*ch_scale = info->scale;
|
||||
*ch_present = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!*ch_present)
|
||||
|
Reference in New Issue
Block a user