Skip to content

Commit 4d1e9e3

Browse files
krish2718nordicjm
authored andcommitted
[nrf fromtree] modules: nrf_wifi: Fix build error
The revert for some reason didn't do a full revert, fix the lock variable. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 1fe2369)
1 parent e1891ec commit 4d1e9e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/nrf_wifi/os/shim.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ static void *zep_shim_spinlock_alloc(void)
199199
{
200200
struct k_mutex *lock = NULL;
201201

202-
slock = k_heap_aligned_alloc(wifi_ctrl_pool, WORD_SIZE, sizeof(*slock), K_FOREVER);
203-
if (!slock) {
202+
lock = k_heap_aligned_alloc(wifi_ctrl_pool, WORD_SIZE, sizeof(*lock), K_FOREVER);
203+
if (!lock) {
204204
LOG_ERR("%s: Unable to allocate memory for spinlock", __func__);
205205
} else {
206-
memset(slock, 0, sizeof(*slock));
206+
memset(lock, 0, sizeof(*lock));
207207
}
208208

209209
return lock;

0 commit comments

Comments
 (0)