novatel: fix invalid comparison of unsigned expression

This patch fixes the following invalid comparison of unsigned expression:

novatel/mm-plugin-novatel.c:148:29: error: comparison of unsigned
      expression >= 0 is always true [-Werror,-Wtautological-compare]
    if (ctx->nwdmat_retries >= 0) {
        ~~~~~~~~~~~~~~~~~~~ ^  ~

Bug reported on https://code.google.com/p/chromium/issues/detail?id=242150
This commit is contained in:
Ben Chan
2013-05-20 10:25:32 +02:00
committed by Aleksander Morgado
parent 619b327012
commit 3332333852
+1 -1
View File
@@ -145,7 +145,7 @@ custom_init_step (CustomInitContext *ctx)
return;
}
if (ctx->nwdmat_retries >= 0) {
if (ctx->nwdmat_retries > 0) {
ctx->nwdmat_retries--;
mm_at_serial_port_queue_command (ctx->port,
"$NWDMAT=1",