Skip to content
Commit 2a3b28a3 authored by Lingao Meng's avatar Lingao Meng Committed by Fabio Baltieri
Browse files

kernel: work: Remove meanless foreach for work



Since call this function both in
```C
	k_spinlock_key_t key = k_spin_lock(&lock);

	bool need_flush = work_flush_locked(work, flusher);

	k_spin_unlock(&lock, key);
```

So, there are no flag_get change.

Signed-off-by: default avatarLingao Meng <menglingao@xiaomi.com>
parent 8e881959
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment