From: Greg Kroah-Hartman Date: Tue, 15 Dec 2015 21:55:05 +0000 (-0800) Subject: greybus: loopback_test: fix warning about signed/unsigned comparison X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6bfff1dcb2766ebef60a288601ff4cccbb1f6e54;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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++) {