Skip to content

Commit 9dce827

Browse files
jimmodpgeorge
authored andcommitted
all: Remove unnecessary locals_dict cast.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent b7d6ee9 commit 9dce827

185 files changed

Lines changed: 226 additions & 226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

extmod/machine_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
737737
mp_machine_soft_i2c_make_new,
738738
print, mp_machine_soft_i2c_print,
739739
protocol, &mp_machine_soft_i2c_p,
740-
locals_dict, (mp_obj_dict_t *)&mp_machine_i2c_locals_dict
740+
locals_dict, &mp_machine_i2c_locals_dict
741741
);
742742

743743
#endif // MICROPY_PY_MACHINE_SOFTI2C

extmod/machine_signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
179179
signal_make_new,
180180
call, signal_call,
181181
protocol, &signal_pin_p,
182-
locals_dict, (void *)&signal_locals_dict
182+
locals_dict, &signal_locals_dict
183183
);
184184

185185
#endif // MICROPY_PY_MACHINE

extmod/machine_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
258258
mp_machine_soft_spi_make_new,
259259
print, mp_machine_soft_spi_print,
260260
protocol, &mp_machine_soft_spi_p,
261-
locals_dict, (mp_obj_dict_t *)&mp_machine_spi_locals_dict
261+
locals_dict, &mp_machine_spi_locals_dict
262262
);
263263

264264
#endif // MICROPY_PY_MACHINE_SOFTSPI

extmod/modbluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
981981
MP_QSTR_BLE,
982982
MP_TYPE_FLAG_NONE,
983983
bluetooth_ble_make_new,
984-
locals_dict, (void *)&bluetooth_ble_locals_dict
984+
locals_dict, &bluetooth_ble_locals_dict
985985
);
986986

987987
STATIC const mp_rom_map_elem_t mp_module_bluetooth_globals_table[] = {

extmod/modbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
330330
iternext, btree_iternext,
331331
binary_op, btree_binary_op,
332332
subscr, btree_subscr,
333-
locals_dict, (void *)&btree_locals_dict
333+
locals_dict, &btree_locals_dict
334334
);
335335
#endif
336336

extmod/modframebuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
835835
MP_TYPE_FLAG_NONE,
836836
framebuf_make_new,
837837
buffer, framebuf_get_buffer,
838-
locals_dict, (mp_obj_dict_t *)&framebuf_locals_dict
838+
locals_dict, &framebuf_locals_dict
839839
);
840840
#endif
841841

extmod/modlwip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
182182
MP_QSTR_slip,
183183
MP_TYPE_FLAG_NONE,
184184
lwip_slip_make_new,
185-
locals_dict, (mp_obj_dict_t *)&lwip_slip_locals_dict
185+
locals_dict, &lwip_slip_locals_dict
186186
);
187187

188188
#endif // MICROPY_PY_LWIP_SLIP
@@ -1602,7 +1602,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
16021602
lwip_socket_make_new,
16031603
print, lwip_socket_print,
16041604
protocol, &lwip_socket_stream_p,
1605-
locals_dict, (mp_obj_dict_t *)&lwip_socket_locals_dict
1605+
locals_dict, &lwip_socket_locals_dict
16061606
);
16071607

16081608
/******************************************************************************/

extmod/moduasyncio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
149149
MP_QSTR_TaskQueue,
150150
MP_TYPE_FLAG_NONE,
151151
task_queue_make_new,
152-
locals_dict, (mp_obj_dict_t *)&task_queue_locals_dict
152+
locals_dict, &task_queue_locals_dict
153153
);
154154

155155
/******************************************************************************/

extmod/moducryptolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
353353
MP_QSTR_aes,
354354
MP_TYPE_FLAG_NONE,
355355
ucryptolib_aes_make_new,
356-
locals_dict, (void *)&ucryptolib_aes_locals_dict
356+
locals_dict, &ucryptolib_aes_locals_dict
357357
);
358358

359359
STATIC const mp_rom_map_elem_t mp_module_ucryptolib_globals_table[] = {

extmod/moduhashlib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
162162
MP_QSTR_sha256,
163163
MP_TYPE_FLAG_NONE,
164164
uhashlib_sha256_make_new,
165-
locals_dict, (void *)&uhashlib_sha256_locals_dict
165+
locals_dict, &uhashlib_sha256_locals_dict
166166
);
167167
#endif
168168

@@ -256,7 +256,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
256256
MP_QSTR_sha1,
257257
MP_TYPE_FLAG_NONE,
258258
uhashlib_sha1_make_new,
259-
locals_dict, (void *)&uhashlib_sha1_locals_dict
259+
locals_dict, &uhashlib_sha1_locals_dict
260260
);
261261
#endif
262262

@@ -350,7 +350,7 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
350350
MP_QSTR_md5,
351351
MP_TYPE_FLAG_NONE,
352352
uhashlib_md5_make_new,
353-
locals_dict, (void *)&uhashlib_md5_locals_dict
353+
locals_dict, &uhashlib_md5_locals_dict
354354
);
355355
#endif // MICROPY_PY_UHASHLIB_MD5
356356

0 commit comments

Comments
 (0)