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:
committed by
Aleksander Morgado
parent
619b327012
commit
3332333852
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user