]> git.karo-electronics.de Git - linux-beck.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)
commitbecce4a47ea488c8f4f6fc0048085efb6fff72e7
tree8d6bd4db58150bfc2fc94435147d976243d1038b
parent6697b8705196f090dc564fd3bfca9173b30cd288
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