Commit 4cd69b98 authored by Huang Ying's avatar Huang Ying Committed by Linus Torvalds

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: default avatarHuang Ying <ying.huang@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ce289e89
...@@ -1503,7 +1503,8 @@ int kernel_kexec(void) ...@@ -1503,7 +1503,8 @@ int kernel_kexec(void)
} }
Unlock: Unlock:
xchg(&kexec_lock, 0); if (!xchg(&kexec_lock, 0))
BUG();
return error; return error;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment