arp: Move sCacheLock to be near the structure it's protecting.

No functional change intended.
This commit is contained in:
Augustin Cavalier 2024-11-05 13:48:54 -05:00
parent 1f4aed8088
commit 79e2ef5c69

View File

@ -120,7 +120,6 @@ static void arp_timer(struct net_timer *timer, void *data);
net_buffer_module_info* gBufferModule;
static net_stack_module_info* sStackModule;
static net_datalink_module_info* sDatalinkModule;
static mutex sCacheLock;
static bool sIgnoreReplies;
@ -152,6 +151,7 @@ struct arpHash {
typedef BOpenHashTable<arpHash> AddressCache;
static AddressCache* sCache;
static mutex sCacheLock;
#ifdef TRACE_ARP