tca6408: Remove unused variable.
This commit is contained in:
parent
683ca8034d
commit
48c21c2155
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user