-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
physical: Avoid most of strcmp for port binding type.
The port binding type was compared everywhere via strcmp(). That would be fine for if, if else chains, however, the code was using this comparison multiple times per function call in some instances. Convert the type into enum and use enum comparison instead. Signed-off-by: Ales Musil <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Mark Michelson <[email protected]>
- Loading branch information
Showing
1 changed file
with
59 additions
and
56 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