projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d818a
)
broadcom-diag: check the correct value for not null.
author
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 14 Jul 2013 11:28:37 +0000
(11:28 +0000)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 14 Jul 2013 11:28:37 +0000
(11:28 +0000)
This also fixes a compile warning.
SVN-Revision: 37279
package/kernel/broadcom-diag/src/diag.c
patch
|
blob
|
history
diff --git
a/package/kernel/broadcom-diag/src/diag.c
b/package/kernel/broadcom-diag/src/diag.c
index 849a843af415c37e7d427bf4adde2ee5f193dada..ace44cce551c93a4cbe7aed34d79be830027b579 100644
(file)
--- 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 (b
uf
|| !strcmp(boardnum, "00")) {/* probably buffalo */
+ if (b
oardnum
|| !strcmp(boardnum, "00")) {/* probably buffalo */
if (startswith(boardtype, "bcm94710ap"))
return &platforms[BUFFALO_UNKNOWN_4710];
else