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.
This commit is contained in:
Nathan Hartman 2023-01-30 09:59:11 -05:00 committed by Xiang Xiao
parent 4b4004b874
commit f63754c4c0
1 changed files with 0 additions and 3 deletions

View File

@ -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);