]> git.baikalelectronics.ru Git - kernel.git/commit
staging: et131x: Use for loop to initialise contiguous macstat registers to zero
authorMark Einon <mark.einon@gmail.com>
Wed, 20 Aug 2014 22:17:54 +0000 (23:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:33:23 +0000 (13:33 -0700)
commit1522883bdb38b7dc06fb58ac5ca775f20f0290c3
tree8d6bd4db58150bfc2fc94435147d976243d1038b
parent6e91b3c03dd8e850e929c18e0d7e1676156d43fa
staging: et131x: Use for loop to initialise contiguous macstat registers to zero

Replace a long list of contiguous writel() calls with a for loop iterating
over the same address values.

Also remove redundant comments on the macstat registers, the variable names
are good enough.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c
drivers/staging/et131x/et131x.h