Skip to content
Snippets Groups Projects
Commit 10e71059 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

graphics/vnc/server: Fix an error in the VNC server introduced with recent big set of changes.

parent 9e25d892
No related branches found
No related tags found
No related merge requests found
......@@ -538,7 +538,7 @@ static inline int vnc_wait_start(int display)
static inline int vnc_wait_connect(int display)
{
int errcode;
int result;
int ret;
/* Check if there has been a session allocated yet. This is one of the
* first things that the VNC server will do with the kernel thread is
......@@ -581,14 +581,14 @@ static inline int vnc_wait_connect(int display)
* counting semaphore screw-up?
*/
result = g_fbstartup[display].result;
if (result != -EBUSY)
ret = g_fbstartup[display].result;
if (ret != -EBUSY)
{
#ifdef CONFIG_DEBUG_FEATURES
if (result < 0)
if (ret < 0)
{
DEBUGASSERT(g_vnc_sessions[display] == NULL);
gerr("ERROR: VNC server startup failed: %d\n", result);
gerr("ERROR: VNC server startup failed: %d\n", ret);
}
else
{
......@@ -596,7 +596,7 @@ static inline int vnc_wait_connect(int display)
g_vnc_sessions[display]->state == VNCSERVER_RUNNING);
}
#endif
return result;
return ret;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment