[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180719132253.10416-1-yuehaibing@huawei.com>
Date: Thu, 19 Jul 2018 21:22:53 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <tglx@...utronix.de>, <mingo@...hat.com>, <hpa@...or.com>
CC: <linux-kernel@...r.kernel.org>, <x86@...nel.org>,
<kstewart@...uxfoundation.org>, <gregkh@...uxfoundation.org>,
<pombredanne@...b.com>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH] x86: Use PTR_ERR_OR_ZERO
Replace IS_ERR/PTR_ERR
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
arch/x86/kernel/pcspeaker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/pcspeaker.c b/arch/x86/kernel/pcspeaker.c
index da5190a..4a710ff 100644
--- a/arch/x86/kernel/pcspeaker.c
+++ b/arch/x86/kernel/pcspeaker.c
@@ -9,6 +9,6 @@ static __init int add_pcspkr(void)
pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
- return IS_ERR(pd) ? PTR_ERR(pd) : 0;
+ return PTR_ERR_OR_ZERO(pd);
}
device_initcall(add_pcspkr);
--
2.7.0
Powered by blists - more mailing lists