kernel: coding guidelines: add explicit cast to void
- added explicit cast to void when returned value is expectedly ignored Signed-off-by: frei tycho <tfrei@baumer.com>
This commit is contained in:
parent
64f41309d1
commit
14cb7d5b03
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ void z_smp_global_unlock(unsigned int key)
|
||||||
_current->base.global_lock_count--;
|
_current->base.global_lock_count--;
|
||||||
|
|
||||||
if (!_current->base.global_lock_count) {
|
if (!_current->base.global_lock_count) {
|
||||||
atomic_clear(&global_lock);
|
(void)atomic_clear(&global_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ void z_smp_global_unlock(unsigned int key)
|
||||||
void z_smp_release_global_lock(struct k_thread *thread)
|
void z_smp_release_global_lock(struct k_thread *thread)
|
||||||
{
|
{
|
||||||
if (!thread->base.global_lock_count) {
|
if (!thread->base.global_lock_count) {
|
||||||
atomic_clear(&global_lock);
|
(void)atomic_clear(&global_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue