[WAN]: kfree of NULL pointer is valid
kfree(0) is perfectly valid, checking pointers for NULL before calling kfree() on them is redundant. The patch below cleans away a few such redundant checks (and while I was around some of those bits I couldn't stop myself from making a few tiny whitespace changes as well). Signed-off-by:Jesper Juhl <juhl-lkml@dif.dk> Acked-by:
Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/wan/cycx_x25.c 2 additions, 6 deletionsdrivers/net/wan/cycx_x25.c
- drivers/net/wan/pc300_tty.c 11 additions, 16 deletionsdrivers/net/wan/pc300_tty.c
- drivers/net/wan/sdla_chdlc.c 4 additions, 9 deletionsdrivers/net/wan/sdla_chdlc.c
- drivers/net/wan/x25_asy.c 6 additions, 14 deletionsdrivers/net/wan/x25_asy.c
Loading
Please register or sign in to comment