Commit 49f9337956af6d52470c8082c8e7088b0c030334

Authored by Jeroen Hofstee
Committed by Tom Rini
1 parent 6275331d41

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -411,7 +411,7 @@
411 411 goto out_recv;
412 412 }
413 413  
414   - if ((status == chip->vendor.req_canceled)) {
  414 + if (status == chip->vendor.req_canceled) {
415 415 error("Operation Canceled\n");
416 416 rc = -ECANCELED;
417 417 goto out;