summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-07-02 15:05:41 -0500
committerDamien George <damien@micropython.org>2022-07-18 13:52:01 +1000
commit32e32bd761e91b9aa21f98b4f4fd4d96c723fdb6 (patch)
tree52cf0e10b678ba665cb09173c4f02fe5ed5dd58e /py
parentd532c55e3b8ee7955bea99fc79ccd74d9a35f757 (diff)
downloadmicropython-32e32bd761e91b9aa21f98b4f4fd4d96c723fdb6.tar.gz
micropython-32e32bd761e91b9aa21f98b4f4fd4d96c723fdb6.zip
extmod/vfs: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register vfs_cur and vfs_mount_table instead of using a conditional inside of mp_state_vm_t. Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py')
-rw-r--r--py/mpstate.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 7ad9d6b293..784eff0a26 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -198,11 +198,6 @@ typedef struct _mp_state_vm_t {
// root pointers for extmod
- #if MICROPY_VFS
- struct _mp_vfs_mount_t *vfs_cur;
- struct _mp_vfs_mount_t *vfs_mount_table;
- #endif
-
#if MICROPY_PY_BLUETOOTH
mp_obj_t bluetooth;
#endif