diff --git a/arch/arm/src/tiva/common/tiva_can.c b/arch/arm/src/tiva/common/tiva_can.c index b2da64d2dd..761ea89215 100644 --- a/arch/arm/src/tiva/common/tiva_can.c +++ b/arch/arm/src/tiva/common/tiva_can.c @@ -2344,7 +2344,6 @@ static int tivacan_initfilter(struct can_dev_s *dev, int tiva_can_initialize(char *devpath, int modnum) { struct can_dev_s *dev; - struct tiva_canmod_s *canmod; int ret; caninfo("tiva_can_initialize module %d\n", modnum); @@ -2372,8 +2371,6 @@ int tiva_can_initialize(char *devpath, int modnum) } #endif - canmod = dev->cd_priv; - /* Register the driver */ ret = can_register(devpath, dev);