File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
nanostack/mbed-mesh-api/source Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -189,9 +189,8 @@ void LWIPMemoryManager::set_total_len(struct pbuf *pbuf)
189189
190190void mbed_lwip_on_pbuf_pool_free_hook ()
191191{
192- auto & callback = LWIP::get_instance ().get_memory_manager ().onPoolSpaceAvailCallback ;
193- if (callback)
194- {
192+ auto &callback = LWIP::get_instance ().get_memory_manager ().onPoolSpaceAvailCallback ;
193+ if (callback) {
195194 callback ();
196195 }
197196}
Original file line number Diff line number Diff line change @@ -158,9 +158,8 @@ NetStackMemoryManager::Lifetime NanostackMemoryManager::get_lifetime(const net_s
158158
159159void mbed_ns_heap_free_hook ()
160160{
161- auto & callback = Nanostack::get_instance ().get_memory_manager ().onPoolSpaceAvailCallback ;
162- if (callback)
163- {
161+ auto &callback = Nanostack::get_instance ().get_memory_manager ().onPoolSpaceAvailCallback ;
162+ if (callback) {
164163 callback ();
165164 }
166165}
You can’t perform that action at this time.
0 commit comments