summaryrefslogtreecommitdiff
path: root/drivers/tpm
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-18 22:59:48 +0200
committerTom Rini <trini@ti.com>2014-07-07 19:43:01 -0400
commit49f9337956af6d52470c8082c8e7088b0c030334 (patch)
tree3f9f42db007e23be18c4bb12ec1d969c0a5a781b /drivers/tpm
parent6275331d41cc80d93ca00d12e8c694b9d9841155 (diff)
downloadu-boot-imx-49f9337956af6d52470c8082c8e7088b0c030334.zip
u-boot-imx-49f9337956af6d52470c8082c8e7088b0c030334.tar.gz
u-boot-imx-49f9337956af6d52470c8082c8e7088b0c030334.tar.bz2
tpm: don't use unneeded double brackets
clang is tempted to inteprete such a condition as a assignment as well. Since it isn't don't use double brackets. cc: Tom Wai-Hong Tam <waihong@chromium.org> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'drivers/tpm')
-rw-r--r--drivers/tpm/tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tpm/tpm.c b/drivers/tpm/tpm.c
index b657334..bc0f964 100644
--- a/drivers/tpm/tpm.c
+++ b/drivers/tpm/tpm.c
@@ -411,7 +411,7 @@ static ssize_t tpm_transmit(const unsigned char *buf, size_t bufsiz)
goto out_recv;
}
- if ((status == chip->vendor.req_canceled)) {
+ if (status == chip->vendor.req_canceled) {
error("Operation Canceled\n");
rc = -ECANCELED;
goto out;