Restore the previous behaviour of substring match.
This commit is contained in:
parent
5c90ddd6c4
commit
e41a851f03
@ -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