Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 23, 2025
1 parent f7c8909 commit 6b06a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions connectivity/lwipstack/source/LWIPMemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ void LWIPMemoryManager::set_total_len(struct pbuf *pbuf)

void mbed_lwip_on_pbuf_pool_free_hook()
{
auto & callback = LWIP::get_instance().get_memory_manager().onPoolSpaceAvailCallback;
if(callback)
{
auto &callback = LWIP::get_instance().get_memory_manager().onPoolSpaceAvailCallback;
if (callback) {
callback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ NetStackMemoryManager::Lifetime NanostackMemoryManager::get_lifetime(const net_s

void mbed_ns_heap_free_hook()
{
auto & callback = Nanostack::get_instance().get_memory_manager().onPoolSpaceAvailCallback;
if(callback)
{
auto &callback = Nanostack::get_instance().get_memory_manager().onPoolSpaceAvailCallback;
if (callback) {
callback();
}
}

0 comments on commit 6b06a72

Please sign in to comment.