Message ID | 20201204170319.20383-10-laniel_francis@privacyrequired.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Replace strstarts() by str_has_prefix() | expand |
diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c index 01aff80a5967..85ccb2b02621 100644 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c @@ -747,7 +747,7 @@ void __init board_prom_init(void) /* dump cfe version */ cfe = boot_addr + BCM963XX_CFE_VERSION_OFFSET; - if (strstarts(cfe, "cfe-")) { + if (str_has_prefix(cfe, "cfe-")) { if(cfe[4] == 'v') { if(cfe[5] == 'd') snprintf(cfe_version, 11, "%s",