mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
kexec: fix compilation warning on xchg(&kexec_lock, 0) in kernel_kexec()
kernel/kexec.c: In function 'kernel_kexec': kernel/kexec.c:1506: warning: value computed is not used Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ce289e8972
commit
4cd69b986e
1 changed files with 2 additions and 1 deletions
|
@ -1503,7 +1503,8 @@ int kernel_kexec(void)
|
|||
}
|
||||
|
||||
Unlock:
|
||||
xchg(&kexec_lock, 0);
|
||||
if (!xchg(&kexec_lock, 0))
|
||||
BUG();
|
||||
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue