Removed useless check.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14480 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-06-05 07:13:06 +00:00
parent 73bd4a0892
commit 80f66f0e49
1 changed files with 3 additions and 7 deletions

View File

@ -74,15 +74,11 @@
#if defined(PORT_INSTANCE_ACCESS)
#define currcore PORT_INSTANCE_ACCESS
#else /* !defined(PORT_INSTANCE_ACCESS) */
#if defined(PORT_CORES_NUMBER)
#if (PORT_CORES_NUMBER > 1) || defined(__DOXYGEN__)
#define currcore ch_system.instances[port_get_core_id()]
#else
#define currcore (&ch0)
#endif
#if (PORT_CORES_NUMBER > 1) || defined(__DOXYGEN__)
#define currcore ch_system.instances[port_get_core_id()]
#else
#define currcore (&ch0)
#endif /* defined(PORT_CORES_NUMBER) */
#endif
#endif /* defined(PORT_INSTANCE_ACCESS) */
/*===========================================================================*/