[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170531000557.GA3301@embeddedgus>
Date: Tue, 30 May 2017 19:05:57 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Peter Huewe <peterhuewe@....de>,
Marcel Selhorst <tpmdd@...horst.net>,
Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
Jason Gunthorpe <jgunthorpe@...idianresearch.com>
Cc: tpmdd-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <garsilva@...eddedor.com>
Subject: [PATCH] char: tpm: remove unnecessary code
Remove unnecessary code.
Pointer chip cannot be NULL in st33zp24_send().
Addresses-Coverity-ID: 1397648
Cc: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
---
drivers/char/tpm/st33zp24/st33zp24.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/char/tpm/st33zp24/st33zp24.c b/drivers/char/tpm/st33zp24/st33zp24.c
index 4d1dc8b..ca74c24 100644
--- a/drivers/char/tpm/st33zp24/st33zp24.c
+++ b/drivers/char/tpm/st33zp24/st33zp24.c
@@ -373,8 +373,6 @@ static int st33zp24_send(struct tpm_chip *chip, unsigned char *buf,
int ret;
u8 data;
- if (!chip)
- return -EBUSY;
if (len < TPM_HEADER_SIZE)
return -EBUSY;
--
2.5.0
Powered by blists - more mailing lists