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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1503,7 +1503,8 @@ int kernel_kexec(void)
	}

 Unlock:
	xchg(&kexec_lock, 0);
	if (!xchg(&kexec_lock, 0))
		BUG();

	return error;
}