Fix periph listing when IOCTL buffer border hits result for wanted bus.
This commit is contained in:
parent
2a11027fd3
commit
7dc06c978d
@ -102,6 +102,9 @@ print_periphs(int session_id)
|
||||
ccb.cdm.num_patterns = 0;
|
||||
ccb.cdm.pattern_buf_len = 0;
|
||||
|
||||
skip_bus = 1;
|
||||
skip_device = 1;
|
||||
|
||||
/*
|
||||
* We do the ioctl multiple times if necessary, in case there are
|
||||
* more than 100 nodes in the EDT.
|
||||
@ -120,9 +123,6 @@ print_periphs(int session_id)
|
||||
break;
|
||||
}
|
||||
|
||||
skip_bus = 1;
|
||||
skip_device = 1;
|
||||
|
||||
for (i = 0; i < ccb.cdm.num_matches; i++) {
|
||||
switch (ccb.cdm.matches[i].type) {
|
||||
case DEV_MATCH_BUS: {
|
||||
|
Loading…
Reference in New Issue
Block a user