aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-07-14 11:28:37 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-07-14 11:28:37 +0000
commitc7370edf98a0a48db03e9bb7b969fdc41f714be5 (patch)
treea72fd7590630ddfb1076e5ac56b06ade3134e4e6 /package
parent63d818a219ab1b93b3a9c1c22f59792924e76393 (diff)
downloadupstream-c7370edf98a0a48db03e9bb7b969fdc41f714be5.tar.gz
upstream-c7370edf98a0a48db03e9bb7b969fdc41f714be5.tar.bz2
upstream-c7370edf98a0a48db03e9bb7b969fdc41f714be5.zip
broadcom-diag: check the correct value for not null.
This also fixes a compile warning. SVN-Revision: 37279
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-diag/src/diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c
index 849a843af4..ace44cce55 100644
--- a/package/kernel/broadcom-diag/src/diag.c
+++ b/package/kernel/broadcom-diag/src/diag.c
@@ -1109,7 +1109,7 @@ static struct platform_t __initdata platforms[] = {
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];
@@ -1232,7 +1232,7 @@ static struct platform_t __init *platform_detect_legacy(void)
}
}
- if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */
+ if (boardnum || !strcmp(boardnum, "00")) {/* probably buffalo */
if (startswith(boardtype, "bcm94710ap"))
return &platforms[BUFFALO_UNKNOWN_4710];
else