[WAN]: kfree of NULL pointer is valid
authorJesper Juhl <juhl-lkml@dif.dk>
Tue, 3 May 2005 21:33:27 +0000 (14:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2005 21:33:27 +0000 (14:33 -0700)
commit6a5d362120a61a719095443194cc2d5e9a7027dd
tree7cab13ff0d252b96f4eeda7475f805ffdd1c0c4a
parentdb46edc6d3b66bf708a8f23a9aa89f63a49ebe33
[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>
drivers/net/wan/cycx_x25.c
drivers/net/wan/pc300_tty.c
drivers/net/wan/sdla_chdlc.c
drivers/net/wan/x25_asy.c