summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-08-07 20:47:01 -0600
committerchrome-bot <chrome-bot@chromium.org>2017-08-13 00:57:06 -0700
commit63b76d2f814898f161197d645cfb4a5ba4097ce6 (patch)
treeab0007f5307ceb29e10acc1b1cf9d8a36a2eefb9
parenta7a9705faa9e22b32a687c25440a16c20ff2d226 (diff)
downloadchrome-ec-63b76d2f814898f161197d645cfb4a5ba4097ce6.tar.gz
npcx: espi: Remove useless comparison
Because m is unsigned, it can't be less than 0. BUG=b:64477774 TEST=Build Change-Id: Iec93f396be1f01bc1c38b3285b93daacff6a15db Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://chromium-review.googlesource.com/606454 Commit-Ready: Martin Roth <martinroth@chromium.org> Tested-by: Martin Roth <martinroth@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--chip/npcx/espi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/espi.c b/chip/npcx/espi.c
index 43acd2f728..11c3fc6a00 100644
--- a/chip/npcx/espi.c
+++ b/chip/npcx/espi.c
@@ -655,7 +655,7 @@ static int command_espi(int argc, char **argv)
if (*e)
return EC_ERROR_PARAM2;
- if (m < 0 || m > 4)
+ if (m > 4)
return EC_ERROR_PARAM2;
else if (m == 4)
chan = 0x0F;