From 04ce8ca01dc8ed592391c793aa886dff3fff569d Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Sun, 7 May 2023 11:30:58 +0200 Subject: [PATCH] ftdi-gpio: correct the interface name and fix -Wlogical-op warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct parsing of 'B' interface name from config and also fix: ftdi-gpio.c: In function ‘ftdi_gpio_parse_config’: ftdi-gpio.c:104:31: warning: logical ‘and’ of equal expressions [-Wlogical-op] 104 | if (*interface != 'A' && | ^~ Signed-off-by: Krzysztof Kozlowski --- ftdi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdi-gpio.c b/ftdi-gpio.c index dca9488..b49e267 100644 --- a/ftdi-gpio.c +++ b/ftdi-gpio.c @@ -102,7 +102,7 @@ static void ftdi_gpio_parse_config(struct ftdi_gpio *ftdi_gpio, char *control_de // Interface interface = c + 1; if (*interface != 'A' && - *interface != 'A' && + *interface != 'B' && *interface != 'C' && *interface != 'D') { errx(1, "Invalid interface '%c'", *interface);