From: Markus Elfring Date: Sun, 4 Jun 2017 19:21:20 +0000 (+0200) Subject: arm/xen: Adjust one function call together with a variable assignment X-Git-Tag: v4.13-rc1~130^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84a0a967a44b9da6c5effff628aafa7698050574;p=platform%2Fkernel%2Flinux-exynos.git arm/xen: Adjust one function call together with a variable assignment The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring Reviewed-by: Stefano Stabellini --- diff --git a/arch/arm/xen/p2m.c b/arch/arm/xen/p2m.c index f5f74ac..e71eefa 100644 --- a/arch/arm/xen/p2m.c +++ b/arch/arm/xen/p2m.c @@ -153,7 +153,8 @@ bool __set_phys_to_machine_multi(unsigned long pfn, p2m_entry->mfn = mfn; write_lock_irqsave(&p2m_lock, irqflags); - if ((rc = xen_add_phys_to_mach_entry(p2m_entry)) < 0) { + rc = xen_add_phys_to_mach_entry(p2m_entry); + if (rc < 0) { write_unlock_irqrestore(&p2m_lock, irqflags); return false; }