aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/tpm/tis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/tpm/tis.c')
-rw-r--r--src/drivers/i2c/tpm/tis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/i2c/tpm/tis.c b/src/drivers/i2c/tpm/tis.c
index fea5145ad2..a0d05409ef 100644
--- a/src/drivers/i2c/tpm/tis.c
+++ b/src/drivers/i2c/tpm/tis.c
@@ -47,9 +47,8 @@ int tis_open(void)
if (rc < 0)
chip->is_open = 0;
- if (rc) {
+ if (rc)
return -1;
- }
return 0;
}
@@ -115,8 +114,9 @@ static ssize_t tpm_transmit(const uint8_t *buf, size_t bufsiz)
goto out_recv;
}
- if ((status == chip->vendor.req_canceled)) {
- printk(BIOS_DEBUG, "tpm_transmit: Operation Canceled\n");
+ if (status == chip->vendor.req_canceled) {
+ printk(BIOS_DEBUG,
+ "tpm_transmit: Operation Canceled\n");
rc = -1;
goto out;
}