[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201210135515.1310-1-zhengyongjun3@huawei.com>
Date: Thu, 10 Dec 2020 21:55:15 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <peterhuewe@....de>, <jarkko@...nel.org>, <jgg@...pe.ca>,
<linux-integrity@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] char/tpm: simplify the return expression of tpm_tis_synquacer_module_init()
Simplify the return expression.
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/char/tpm/tpm_tis_synquacer.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/char/tpm/tpm_tis_synquacer.c b/drivers/char/tpm/tpm_tis_synquacer.c
index e47bdd272704..3b4ae2f23f09 100644
--- a/drivers/char/tpm/tpm_tis_synquacer.c
+++ b/drivers/char/tpm/tpm_tis_synquacer.c
@@ -188,13 +188,8 @@ static struct platform_driver tis_synquacer_drv = {
static int __init tpm_tis_synquacer_module_init(void)
{
- int rc;
- rc = platform_driver_register(&tis_synquacer_drv);
- if (rc)
- return rc;
-
- return 0;
+ return platform_driver_register(&tis_synquacer_drv);
}
static void __exit tpm_tis_synquacer_module_exit(void)
--
2.22.0
Powered by blists - more mailing lists