Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
9f8c2aea
Commit
9f8c2aea
authored
Apr 07, 2020
by
Nathaniel Wesley Filardo
Committed by
Marcel Stör
Jun 09, 2020
Browse files
mqtt: remove dead store
parent
6ac27507
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/mqtt.c
View file @
9f8c2aea
...
@@ -1208,7 +1208,6 @@ static int mqtt_socket_connect( lua_State* L )
...
@@ -1208,7 +1208,6 @@ static int mqtt_socket_connect( lua_State* L )
lua_pushvalue
(
L
,
stack
);
// copy argument (func) to the top of stack
lua_pushvalue
(
L
,
stack
);
// copy argument (func) to the top of stack
luaL_unref
(
L
,
LUA_REGISTRYINDEX
,
mud
->
cb_connect_fail_ref
);
luaL_unref
(
L
,
LUA_REGISTRYINDEX
,
mud
->
cb_connect_fail_ref
);
mud
->
cb_connect_fail_ref
=
luaL_ref
(
L
,
LUA_REGISTRYINDEX
);
mud
->
cb_connect_fail_ref
=
luaL_ref
(
L
,
LUA_REGISTRYINDEX
);
stack
++
;
}
}
lua_pushvalue
(
L
,
1
);
// copy userdata to the top of stack
lua_pushvalue
(
L
,
1
);
// copy userdata to the top of stack
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment