Changeset 37279


Ignore:
Timestamp:
2013-07-14T13:28:37+02:00 (5 years ago)
Author:
hauke
Message:

broadcom-diag: check the correct value for not null.

This also fixes a compile warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/broadcom-diag/src/diag.c

    r37278 r37279  
    11101110static struct platform_t __init *platform_detect_legacy(void) 
    11111111{ 
    1112         char *boardnum, *boardtype, *buf; 
     1112        char *boardnum, *boardtype; 
    11131113 
    11141114        if (strcmp(getvar("nvram_type"), "cfe") == 0) 
     
    12331233        } 
    12341234 
    1235         if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */ 
     1235        if (boardnum || !strcmp(boardnum, "00")) {/* probably buffalo */ 
    12361236                if (startswith(boardtype, "bcm94710ap")) 
    12371237                        return &platforms[BUFFALO_UNKNOWN_4710]; 
Note: See TracChangeset for help on using the changeset viewer.