You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/30 17:36:16 UTC
[nuttx] branch master updated: arch/tiva: Remove dead store
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f63754c4c0 arch/tiva: Remove dead store
f63754c4c0 is described below
commit f63754c4c0031377b035b4882ee23187fc103b26
Author: Nathan Hartman <59...@users.noreply.github.com>
AuthorDate: Mon Jan 30 09:59:11 2023 -0500
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);