This series cleans up a few things in serial port discovery
and fixes detection of duplicates in some cases:

 - Existing usage of memcmp to compare strings is replaces
   with strncmp

 - Don't lookup ports by name right after creating them,
   just return the pointer instead.

 - Move the detection of duplicates *into* the various port
   creation functions. At this point, the various attributes
   such as port number and address have been properly parsed
   and there is no confusion between things like wether a
   0x prefix is present or not for example, or wether hex
   digits are upper or lower case.



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to