From: Jeroen Hofstee Date: Wed, 18 Jun 2014 20:59:48 +0000 (+0200) Subject: tpm: don't use unneeded double brackets X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=49f9337956af6d52470c8082c8e7088b0c030334;p=u-boot.git 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;