This also fixes a compile warning.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37279
3c298f89-4303-0410-b956-
a3cf2f4a3e73
static struct platform_t __init *platform_detect_legacy(void)
{
static struct platform_t __init *platform_detect_legacy(void)
{
- char *boardnum, *boardtype, *buf;
+ char *boardnum, *boardtype;
if (strcmp(getvar("nvram_type"), "cfe") == 0)
return &platforms[WGT634U];
if (strcmp(getvar("nvram_type"), "cfe") == 0)
return &platforms[WGT634U];
- if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */
+ if (boardnum || !strcmp(boardnum, "00")) {/* probably buffalo */
if (startswith(boardtype, "bcm94710ap"))
return &platforms[BUFFALO_UNKNOWN_4710];
else
if (startswith(boardtype, "bcm94710ap"))
return &platforms[BUFFALO_UNKNOWN_4710];
else