r8152: reduce the frequency of spin_lock
authorhayeswang <hayeswang@realtek.com>
Tue, 18 Feb 2014 13:49:02 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 21:40:01 +0000 (16:40 -0500)
commitd84130a10820d074fe52b066f459838324d3774c
tree5ca65ece582544b709d64c9fdd774c6ab006f5b4
parent8a91c8246a847a2435a7ef361bfcd4c2b5be4ea2
r8152: reduce the frequency of spin_lock

Replace getting one item from a list with getting the whole list one time.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c