Use a map to store endpoint descriptors. Allows easy access to a
particular endpoint number.
This commit is contained in:
@@ -55,7 +55,7 @@ func TestEndpoint(t *testing.T) {
|
||||
},
|
||||
},
|
||||
} {
|
||||
epData.intf.Endpoints = []EndpointInfo{epData.ei}
|
||||
epData.intf.Endpoints = map[int]EndpointInfo{epData.ei.Number: epData.ei}
|
||||
for _, tc := range []struct {
|
||||
desc string
|
||||
buf []byte
|
||||
|
Reference in New Issue
Block a user