Skip to content
Snippets Groups Projects
Commit 49f93379 authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 6275331d
No related branches found
No related tags found
No related merge requests found
...@@ -411,7 +411,7 @@ static ssize_t tpm_transmit(const unsigned char *buf, size_t bufsiz) ...@@ -411,7 +411,7 @@ static ssize_t tpm_transmit(const unsigned char *buf, size_t bufsiz)
goto out_recv; goto out_recv;
} }
if ((status == chip->vendor.req_canceled)) { if (status == chip->vendor.req_canceled) {
error("Operation Canceled\n"); error("Operation Canceled\n");
rc = -ECANCELED; rc = -ECANCELED;
goto out; goto out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment