Remove negative NULL-check warning

According to the docs in the GSourceFuncs, the timeout_ parameter can be
NULL. But when it's NULL, it would be equivalent to an invocation to
return -1 as timeout_ and FALSE as return value. This is exactly the
same, what we're doing if timeout_ is not NULL.
This commit is contained in:
Benedikt Heine 2018-01-25 17:35:53 +01:00
parent 1e6a15de00
commit 6402218205

View File

@ -831,8 +831,6 @@ gboolean x_mainloop_fd_prepare(GSource *source, gint *timeout)
{ {
if (timeout) if (timeout)
*timeout = -1; *timeout = -1;
else
LOG_E("x_mainloop_fd_prepare: timeout == NULL");
return false; return false;
} }