• P
    [IPV4]: Fix inetpeer gcc-4.2 warnings · fc7b9380
    Patrick McHardy 提交于
      CC      net/ipv4/inetpeer.o
    net/ipv4/inetpeer.c: In function 'unlink_from_pool':
    net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always evaluate as 'true'
    net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always evaluate as 'true'
    net/ipv4/inetpeer.c: In function 'inet_getpeer':
    net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always evaluate as 'true'
    net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always evaluate as 'true'
    
    "Fix" by checking for != NULL.
    Signed-off-by: NPatrick McHardy <kaber@trash.net>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    fc7b9380
inetpeer.c 14.9 KB