]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/gpio-uclass.c
gpio-uclass.c: Fix comparison of unsigned expression warning
[u-boot] / drivers / gpio / gpio-uclass.c
index 9ab9df4ce7a6cd5afd1a78813c13560a40265a29..ba4804083daa6c7c6619eeda9215022d26fe0623 100644 (file)
@@ -68,7 +68,7 @@ int dm_gpio_lookup_name(const char *name, struct gpio_desc *desc)
                if (numeric != -1) {
                        offset = numeric - uc_priv->gpio_base;
                        /* Allow GPIOs to be numbered from 0 */
-                       if (offset >= 0 && offset < uc_priv->gpio_count)
+                       if (offset < uc_priv->gpio_count)
                                break;
                }