Skip to content

Commit

Permalink
drivers: gpio: Remove logically dead code for MAX149x6
Browse files Browse the repository at this point in the history
Remove logically dead code detected from Coverity.

Signed-off-by: Stoyan Bogdanov <[email protected]>
  • Loading branch information
bogdanovs authored and kartben committed Jan 9, 2025
1 parent 1e64d7b commit 9b194e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpio/gpio_max149x6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b194e1

Please sign in to comment.