]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Eliminate useless memset operations in Ethernet media support
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 19 Oct 2011 19:39:21 +0000 (15:39 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:44 +0000 (11:33 -0500)
commit0c96ee698407f271a0ba363e14eadc218cb7db59
tree8e6a11219c23d07e46ec03e42626aa72d8226584
parentd12009b3e394c4a27987c7141cdeeee2e5242225
tipc: Eliminate useless memset operations in Ethernet media support

Gets rid of two pointless operations that zero out the array used to
record information about TIPC's Ethernet bearers. There is no need to
initialize the array on start up since it is a global variable that is
already zero'd out, and there is no need to zero it out on exit because
the array is never referenced again.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/eth_media.c