From 9b194e1d33c7650f0358e61363e67dc9347a2286 Mon Sep 17 00:00:00 2001 From: Stoyan Bogdanov Date: Mon, 6 Jan 2025 09:55:54 +0200 Subject: [PATCH] drivers: gpio: Remove logically dead code for MAX149x6 Remove logically dead code detected from Coverity. Signed-off-by: Stoyan Bogdanov --- drivers/gpio/gpio_max149x6.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpio/gpio_max149x6.h b/drivers/gpio/gpio_max149x6.h index 3266a219c65fb1..6e2c0c51db5398 100644 --- a/drivers/gpio/gpio_max149x6.h +++ b/drivers/gpio/gpio_max149x6.h @@ -107,10 +107,6 @@ static int max149x6_reg_transceive(const struct device *dev, uint8_t addr, uint8 }; const struct spi_buf_set rx = {.buffers = &rx_buf, .count = 1}; - if (config->crc_en & 0) { - rx_buf.len++; - } - local_tx_buff[0] = FIELD_PREP(MAX149x6_ADDR_MASK, addr) | FIELD_PREP(MAX149x6_CHIP_ADDR_MASK, config->spi_addr) | FIELD_PREP(MAX149x6_RW_MASK, rw & 0x1);