From f63754c4c0031377b035b4882ee23187fc103b26 Mon Sep 17 00:00:00 2001 From: Nathan Hartman <59230071+hartmannathan@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:59:11 -0500 Subject: [PATCH] arch/tiva: Remove dead store * arch/arm/src/tiva/common/tiva_can.c: (tiva_can_initialize): Remove the local variable 'canmod', which was assigned but never used. --- arch/arm/src/tiva/common/tiva_can.c | 3 --- 1 file changed, 3 deletions(-) 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);