aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-07-14 11:28:37 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-07-14 11:28:37 +0000
commit8ad163f6f5f2f48b1a4dee45adf3bdbfbc0abd0b (patch)
tree007504dfbc046b9a8b97218cb03ae2cefaba5046 /package
parent6d0a2d148e02a456254e5d8d1a8fda29e29e3a9a (diff)
downloadmaster-187ad058-8ad163f6f5f2f48b1a4dee45adf3bdbfbc0abd0b.tar.gz
master-187ad058-8ad163f6f5f2f48b1a4dee45adf3bdbfbc0abd0b.tar.bz2
master-187ad058-8ad163f6f5f2f48b1a4dee45adf3bdbfbc0abd0b.zip
broadcom-diag: check the correct value for not null.
This also fixes a compile warning. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37279 3c298f89-4303-0410-b956-a3cf2f4a3e73
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