tca6408: Remove unused variable.

This commit is contained in:
John Baldwin 2022-04-08 17:25:14 -07:00
parent 683ca8034d
commit 48c21c2155

View File

@ -211,15 +211,12 @@ tca6408_pin_max(device_t dev, int *pin)
static int
tca6408_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags)
{
struct tca6408_softc *sc;
uint8_t buffer;
int error;
if (pin >= PINS_NUM || flags == NULL)
return (EINVAL);
sc = device_get_softc(dev);
error = tca6408_read1(dev, TCA6408_CONFIG_REG, &buffer);
if (error != 0)
return (error);