From: Jeroen Hofstee Date: Wed, 18 Jun 2014 20:59:48 +0000 (+0200) Subject: tpm: don't use unneeded double brackets X-Git-Tag: v2014.07~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49f9337956af6d52470c8082c8e7088b0c030334;p=u-boot 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 Signed-off-by: Jeroen Hofstee --- diff --git a/drivers/tpm/tpm.c b/drivers/tpm/tpm.c index b657334195..bc0f9645b5 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;