diff options
Diffstat (limited to 'hw/gpio/pca9554.c')
-rw-r--r-- | hw/gpio/pca9554.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c index fe03bb4..7301fce 100644 --- a/hw/gpio/pca9554.c +++ b/hw/gpio/pca9554.c @@ -118,11 +118,8 @@ static void pca9554_write(PCA9554State *s, uint8_t reg, uint8_t data) static uint8_t pca9554_recv(I2CSlave *i2c) { PCA9554State *s = PCA9554(i2c); - uint8_t ret; - ret = pca9554_read(s, s->pointer & 0x3); - - return ret; + return pca9554_read(s, s->pointer & 0x3); } static int pca9554_send(I2CSlave *i2c, uint8_t data) |