r8152: check tx agg list before spin lock
authorhayeswang <hayeswang@realtek.com>
Fri, 7 Mar 2014 03:04:35 +0000 (11:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Mar 2014 21:24:28 +0000 (16:24 -0500)
commit21949ab7df0d78b575c87c2e70192b487fd37511
treea95a435d248a14744f584ec4491b5866676d8bff
parent2685d4106316e9033f73e631b3bbb9e385123c0a
r8152: check tx agg list before spin lock

Check tx agg list before spin lock to avoid doing spin lock every
times.

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