[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200921131109.93319-1-miaoqinglang@huawei.com>
Date: Mon, 21 Sep 2020 21:11:09 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Peter Huewe <peterhuewe@....de>,
Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
Jason Gunthorpe <jgg@...pe.ca>,
"Arnd Bergmann" <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: <linux-integrity@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH -next] tpm/st33zp24: simplify the return expression of st33zp24_spi_probe()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
drivers/char/tpm/st33zp24/spi.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/char/tpm/st33zp24/spi.c b/drivers/char/tpm/st33zp24/spi.c
index a75dafd39..4580bddbe 100644
--- a/drivers/char/tpm/st33zp24/spi.c
+++ b/drivers/char/tpm/st33zp24/spi.c
@@ -384,13 +384,8 @@ static int st33zp24_spi_probe(struct spi_device *dev)
static int st33zp24_spi_remove(struct spi_device *dev)
{
struct tpm_chip *chip = spi_get_drvdata(dev);
- int ret;
- ret = st33zp24_remove(chip);
- if (ret)
- return ret;
-
- return 0;
+ return st33zp24_remove(chip);
}
static const struct spi_device_id st33zp24_spi_id[] = {
--
2.23.0
Powered by blists - more mailing lists