diff options
author | Jeroen Hofstee | 2014-06-18 22:59:48 +0200 |
---|---|---|
committer | Tom Rini | 2014-07-07 19:43:01 -0400 |
commit | 49f9337956af6d52470c8082c8e7088b0c030334 (patch) | |
tree | 3f9f42db007e23be18c4bb12ec1d969c0a5a781b /drivers/tpm | |
parent | 6275331d41cc80d93ca00d12e8c694b9d9841155 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tpm/tpm.c b/drivers/tpm/tpm.c index b6573341956..bc0f9645b59 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; |