• S
    openprom: fix warning · 21916a4a
    Sam Ravnborg 提交于
    Fix following warnings:
    openprom.c:510:2: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
    openprom.c:503:3: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
    openprom.c:459:8: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
    openprom.c:422:7: warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]
    
    Fixed by introducing PTR_ERR etc.
    This simplified the code as a nice side effect.
    Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    21916a4a
openprom.c 15.7 KB