forked from libusb/libusb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: Cover all enumeration passes explicitly in switch statements
This is only for readability and doesn't change the behaviour. Several passes were implicitly grouped together in the "default" case, which made the code unnecessarily hard to read. The reason was that the number of EXT passes is not known, so those were conveniently treated in the "default" case together with some non-EXT passes. Instead introduce a "pass_type" helper variable which has a defined range, and add all pass types explicitly in the switch statements. At the same time update the comment which shortly explains the different passes, it hasn't reflected reality for a long while. Signed-off-by: Tormod Volden <[email protected]>
- Loading branch information
1 parent
d47ee91
commit 3534856
Showing
1 changed file
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters