Fix GCC 5.1 compile error 'logical not is only applied to the left hand side of comparison'

/mnt/storage/sources/hdctools/src/toad/toad.c: In function ‘setEcAp’:
/mnt/storage/sources/hdctools/src/toad/toad.c:461:46: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     if (!(mode & BIT_AP_MODE_EC_MODE_L_MASK) != ec) {
                                              ^
/mnt/storage/sources/hdctools/src/toad/toad.c:466:53: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
         while (!(mode & BIT_AP_MODE_EC_MODE_L_MASK) != ec) {

Signed-off-by: Anatol Pomazau <anatol@google.com>

Change-Id: I5c583dcef03a6bc127a04148359d0111401ce072
Reviewed-on: https://chromium-review.googlesource.com/280784
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Anatol Pomazau <anatol@google.com>
Tested-by: Anatol Pomazau <anatol@google.com>
1 file changed