diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-15 13:55:05 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-17 18:17:07 -0800 |
commit | 6bfff1dcb2766ebef60a288601ff4cccbb1f6e54 (patch) | |
tree | f01e48364a8bcdd0369ec3287d04d376ca2a55c7 /drivers/staging/greybus/tools/loopback_test.c | |
parent | 6b0658f68786110f41cd82558bd97447e4b14203 (diff) |
greybus: loopback_test: fix warning about signed/unsigned comparison
We read an int, don't treat it as a unsigned value, especially when
comparing it to a signed value.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/tools/loopback_test.c')
-rw-r--r-- | drivers/staging/greybus/tools/loopback_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/tools/loopback_test.c b/drivers/staging/greybus/tools/loopback_test.c index 55b3102d5a6e..5c2a9fcbd68b 100644 --- a/drivers/staging/greybus/tools/loopback_test.c +++ b/drivers/staging/greybus/tools/loopback_test.c @@ -689,7 +689,7 @@ static int unregister_for_notification(struct loopback_test *t) static int is_complete(struct loopback_test *t) { - uint32_t iteration_count = 0; + int iteration_count; int i; for (i = 0; i < t->device_count; i++) { |