]> git.baikalelectronics.ru Git - kernel.git/commit
ksz884x: Use kzalloc rather than kmalloc followed by memset with 0
authorThomas Meyer <thomas@m3y3r.de>
Thu, 17 Nov 2011 12:43:40 +0000 (12:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2011 20:02:36 +0000 (15:02 -0500)
commit1f8aa200a9f26100b8b12e14cb7980fe08f7f0ec
tree44cb25e132bab2aa5d41b4037e6377bedd0fde1c
parent5ccaec5163454d4b27596cab0ad8a7dd9a8a5e04
ksz884x: Use kzalloc rather than kmalloc followed by memset with 0

This considers some simple cases that are common and easy to validate
Note in particular that there are no ...s in the rule, so all of the
matched code has to be contiguous

The semantic patch that makes this change is available
in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ksz884x.c