mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Restore the previous behaviour of substring match.
This commit is contained in:
parent
36b0a37317
commit
8299c44bdd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215355
@ -160,7 +160,8 @@ detect_hs21(struct bce_softc *bce_sc)
|
||||
if (bce_sc->bce_chipid == HS21_BCM_CHIPID) {
|
||||
sysenv = getenv("smbios.system.product");
|
||||
if (sysenv != NULL) {
|
||||
if (strcmp(sysenv, HS21_PRODUCT_ID) == 0)
|
||||
if (strncmp(sysenv, HS21_PRODUCT_ID,
|
||||
strlen(HS21_PRODUCT_ID)) == 0)
|
||||
found = 1;
|
||||
freeenv(sysenv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user