]> sigrok.org Git - libsigrok.git/blobdiff - src/session.c
Doxygen: Fix various warnings.
[libsigrok.git] / src / session.c
index bfc0a35a9782aeb4a399f49d07234a1e4e73e2fc..5e48f4a5aeee5b1aafaf5ea1e2d595d407f6a2c0 100644 (file)
@@ -53,7 +53,6 @@ struct datafeed_callback {
 
 /** Custom GLib event source for generic descriptor I/O.
  * @see https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html
- * @internal
  */
 struct fd_source {
        GSource base;
@@ -158,7 +157,9 @@ static void fd_source_finalize(GSource *source)
  * @param session The session the event source belongs to.
  * @param key The key used to identify this source.
  * @param fd The file descriptor or HANDLE.
+ * @param events Events.
  * @param timeout_ms The timeout interval in ms, or -1 to wait indefinitely.
+ *
  * @return A new event source object, or NULL on failure.
  */
 static GSource *fd_source_new(struct sr_session *session, void *key,
@@ -1092,8 +1093,6 @@ SR_PRIV int sr_session_send_meta(const struct sr_dev_inst *sdi,
        int ret;
 
        cfg = sr_config_new(key, var);
-       if (!cfg)
-               return SR_ERR;
 
        memset(&meta, 0, sizeof(meta));